Merge pull request #48 from joliss/simplify

Simplify code
This commit is contained in:
Yehuda Katz 2012-04-25 10:51:42 -07:00
commit 6a2103bcb6

View File

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