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