mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
c5d62cb86d
Previously, calling `User.model_name.to_json` would result in an infinite recursion as `.model_name` inherited its `.as_json` behavior from Object. This patch fixes that unexpected behavior by delegating `.as_json` to :name. |
||
---|---|---|
.. | ||
active_model | ||
active_model.rb |