Skip to content

Commit

Permalink
Merge pull request #2482 from vineelvineel/fix_cant_modify_frozen_hash
Browse files Browse the repository at this point in the history
Fix cant modify frozen Hash error due to rails changes
  • Loading branch information
bf4 authored Nov 16, 2024
2 parents bda1950 + 785b7d3 commit b21e78b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_model_serializers/adapter/attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def initialize(*)
end

def serializable_hash(options = nil)
options = serialization_options(options)
options = serialization_options(options.dup)
options[:fields] ||= instance_options[:fields]
serialized_hash = serializer.serializable_hash(instance_options, options, self)

Expand Down

0 comments on commit b21e78b

Please sign in to comment.