mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
remove scope as a separate concept and pass it in
as an option.
This commit is contained in:
@@ -42,7 +42,8 @@ module ActionController
|
||||
end
|
||||
|
||||
if json.respond_to?(:active_model_serializer) && (serializer = json.active_model_serializer)
|
||||
json = serializer.new(json, serialization_scope, options)
|
||||
options[:scope] = serialization_scope
|
||||
json = serializer.new(json, options)
|
||||
end
|
||||
super
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user