Skip to content

Commit

Permalink
ah
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoodrow authored Nov 12, 2023
1 parent c10456e commit 29d2dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/patches/active_record/rails7_1/serialization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def serialize(attr_name, class_name_or_coder = Object, **options)
if class_name_or_coder == ::JSON || [:load, :dump].all? { |x| class_name_or_coder.respond_to?(x) }
options = options.merge(coder: class_name_or_coder, type: Object)
else
options = options.merge(type: class_name_or_coder)
options = options.merge(code: default_column_serializer, type: class_name_or_coder)
end

super(attr_name, **options)
Expand Down

0 comments on commit 29d2dab

Please sign in to comment.