mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
disabling custom root option
This commit is contained in:
@@ -168,11 +168,7 @@ module ActiveModel
|
||||
end
|
||||
|
||||
def json_key
|
||||
if root.nil?
|
||||
self.class.root_name
|
||||
else
|
||||
root
|
||||
end
|
||||
self.class.root_name
|
||||
end
|
||||
|
||||
def id
|
||||
|
||||
Reference in New Issue
Block a user