mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
make sure to merge the original responder options into the given options to preserve location
This commit is contained in:
@@ -32,7 +32,7 @@ module ActiveModel
|
||||
serialization_scope = controller.send(:serialization_scope)
|
||||
options[:scope] = serialization_scope unless options.has_key?(:scope)
|
||||
options[:url_options] = controller.send(:url_options)
|
||||
render(given_options.merge(:json => serializer.new(resource, options)))
|
||||
render(given_options.merge(self.options).merge(:json => serializer.new(resource, options)))
|
||||
else
|
||||
super
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user