1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/test/cases/serializers
Ian Ker-Seymer c5d62cb86d activemodel: make .model_name json encodable
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.
2015-02-24 11:00:32 -07:00
..
json_serialization_test.rb activemodel: make .model_name json encodable 2015-02-24 11:00:32 -07:00
xml_serialization_test.rb Move model definition to test/models for test order indenendency 2014-08-28 16:56:53 +09:00