mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Fix options passing in Json and Attributes adapters.
This commit is contained in:
@@ -7,7 +7,7 @@ module ActiveModel
|
||||
|
||||
def serializable_hash(options = nil)
|
||||
options ||= {}
|
||||
{ root => Attributes.new(serializer).serializable_hash(options) }
|
||||
{ root => Attributes.new(serializer, instance_options).serializable_hash(options) }
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user