Skip to content

Commit b21e78b

Browse files
authored
Merge pull request #2482 from vineelvineel/fix_cant_modify_frozen_hash
Fix cant modify frozen Hash error due to rails changes
2 parents bda1950 + 785b7d3 commit b21e78b

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)