Skip to content

Commit

Permalink
it's a serializer not a type (I think)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoodrow authored Nov 12, 2023
1 parent 31b3ffb commit a6ee863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/globalize/active_record/act_macro.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def enable_serializable_attribute(attr_name)
end

if ::ActiveRecord.version >= Gem::Version.new("7.1.0")
translation_class.send :serialize, attr_name, type: serializer
translation_class.send :serialize, attr_name, coder: serializer
else
translation_class.send :serialize, attr_name, serializer
end
Expand Down

0 comments on commit a6ee863

Please sign in to comment.