Skip to content

Commit 785b7d3

Browse files
committed
Fix cant modify frozen Hash error due to rails changes
1 parent bda1950 commit 785b7d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_model_serializers/adapter/attributes.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def initialize(*)
99
end
1010

1111
def serializable_hash(options = nil)
12-
options = serialization_options(options)
12+
options = serialization_options(options.dup)
1313
options[:fields] ||= instance_options[:fields]
1414
serialized_hash = serializer.serializable_hash(instance_options, options, self)
1515

0 commit comments

Comments
 (0)