1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/lib/active_model/serializers
Amiel Martin 6b0e834a19 Use #model_name on instances instead of classes
This allows rails code to be more confdent when asking for a model name, instead of having to ask for the class.

Rails core discussion here: https://groups.google.com/forum/#!topic/rubyonrails-core/ThSaXw9y1F8
2014-06-24 17:20:24 -07:00
..
json.rb Use #model_name on instances instead of classes 2014-06-24 17:20:24 -07:00
xml.rb Use #model_name on instances instead of classes 2014-06-24 17:20:24 -07:00