mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Use underscored json_root
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user