mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
removing unseless root method
This commit is contained in:
parent
2bf91a0c0e
commit
b2f1947d4a
@ -87,7 +87,7 @@ module ActiveModel
|
||||
end
|
||||
|
||||
def include_meta(json)
|
||||
json[meta_key] = meta if meta && root
|
||||
json[meta_key] = meta if meta
|
||||
json
|
||||
end
|
||||
end
|
||||
|
||||
@ -6,10 +6,6 @@ module ActiveModel
|
||||
super
|
||||
@result
|
||||
end
|
||||
|
||||
def root
|
||||
false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user