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
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
..
cases activemodel: make .model_name json encodable 2015-02-24 11:00:32 -07:00
models Merge pull request #16381 from kakipo/validate-length-tokenizer 2015-02-13 12:09:36 -02:00
validators
config.rb