mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
removing unseless root method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user