Simplify code

This commit is contained in:
Jo Liss 2012-04-15 18:17:50 +02:00
parent 93d0cb5117
commit 67d5eefd8e

View File

@ -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