Skip to content

Commit

Permalink
try this ?
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoodrow authored Nov 12, 2023
1 parent 6e44913 commit b9f0e04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/data/models/serialized_attr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ class ArraySerializedAttr < ActiveRecord::Base

class JSONSerializedAttr < ActiveRecord::Base
self.table_name = 'serialized_attrs'
if ::ActiveRecord.version >= Gem::Version.new("7.1.0")
serialize :meta, type: JSON
else
# if ::ActiveRecord.version >= Gem::Version.new("7.1.0")
# serialize :meta, type: JSON
# else
serialize :meta, JSON
end
# end
translates :meta
end

Expand Down

0 comments on commit b9f0e04

Please sign in to comment.