Use underscored json_root

This commit is contained in:
Mikhail Topolskiy
2015-08-13 20:31:48 +03:00
parent 8568ed5913
commit e8e4bdefd2
3 changed files with 24 additions and 11 deletions

View File

@@ -127,7 +127,7 @@ module ActiveModel
end
def json_key
@root || object.class.model_name.to_s.downcase
@root || object.class.model_name.to_s.underscore
end
def id