File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lib/active_model/serializer/adapter Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ def initialize(serializer, options = {})
10
10
def serializable_hash ( options = nil )
11
11
options ||= { }
12
12
if serializer . respond_to? ( :each )
13
- result = serializer . map { |s | Attributes . new ( s ) . serializable_hash ( options ) }
13
+ result = serializer . map { |s | Attributes . new ( s , instance_options ) . serializable_hash ( options ) }
14
14
else
15
15
hash = { }
16
16
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ class Json < Base
7
7
8
8
def serializable_hash ( options = nil )
9
9
options ||= { }
10
- { root => Attributes . new ( serializer ) . serializable_hash ( options ) }
10
+ { root => Attributes . new ( serializer , instance_options ) . serializable_hash ( options ) }
11
11
end
12
12
13
13
private
You can’t perform that action at this time.
0 commit comments