mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Simplify code
This commit is contained in:
parent
93d0cb5117
commit
67d5eefd8e
@ -49,12 +49,7 @@ module ActionController
|
||||
|
||||
if serializer
|
||||
options[:scope] = serialization_scope
|
||||
|
||||
if default_options = default_serializer_options
|
||||
options = options.merge(default_options)
|
||||
end
|
||||
|
||||
json = serializer.new(json, options)
|
||||
json = serializer.new(json, options.merge(default_serializer_options || {}))
|
||||
end
|
||||
super
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user