mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
avoiding nil cases when dynamically creating a class
This commit is contained in:
parent
8e1214b4c5
commit
2e46507971
@ -83,7 +83,7 @@ module ActiveModel
|
|||||||
end
|
end
|
||||||
|
|
||||||
def root
|
def root
|
||||||
serializer.json_key.to_sym
|
serializer.json_key.to_sym if serializer.json_key
|
||||||
end
|
end
|
||||||
|
|
||||||
def include_meta(json)
|
def include_meta(json)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user