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:
@@ -10,7 +10,7 @@ module ActiveModel
|
||||
def serializable_hash(options = nil)
|
||||
options ||= {}
|
||||
if serializer.respond_to?(:each)
|
||||
result = serializer.map { |s| Attributes.new(s).serializable_hash(options) }
|
||||
result = serializer.map { |s| Attributes.new(s, instance_options).serializable_hash(options) }
|
||||
else
|
||||
hash = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user