Skip to content

Commit

Permalink
use the normal serialize method and trust the patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoodrow authored Nov 12, 2023
1 parent a6ee863 commit 7d8a970
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/globalize/active_record/act_macro.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,7 @@ def enable_serializable_attribute(attr_name)
serializer = serializer.object_class
end

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

Expand Down

0 comments on commit 7d8a970

Please sign in to comment.