mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
root option is working (fixed #986)
This commit is contained in:
committed by
vyrak bunleang
parent
d7140949cd
commit
e5ccb8e4dd
@@ -169,7 +169,7 @@ module ActiveModel
|
||||
end
|
||||
|
||||
def json_key
|
||||
self.class.root_name
|
||||
@root || self.class.root_name
|
||||
end
|
||||
|
||||
def id
|
||||
|
||||
Reference in New Issue
Block a user