mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
commit
6a2103bcb6
@ -49,12 +49,7 @@ module ActionController
|
|||||||
|
|
||||||
if serializer
|
if serializer
|
||||||
options[:scope] = serialization_scope
|
options[:scope] = serialization_scope
|
||||||
|
json = serializer.new(json, options.merge(default_serializer_options || {}))
|
||||||
if default_options = default_serializer_options
|
|
||||||
options = options.merge(default_options)
|
|
||||||
end
|
|
||||||
|
|
||||||
json = serializer.new(json, options)
|
|
||||||
end
|
end
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user