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