Fix options passing in Json and Attributes adapters.

This commit is contained in:
Lucas Hosseini
2015-09-21 07:11:30 +02:00
parent 88785ea21e
commit 4976837c31
2 changed files with 2 additions and 2 deletions

View File

@@ -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 = {}