Skip to content

Commit

Permalink
Use ActiveRecord.version
Browse files Browse the repository at this point in the history
  • Loading branch information
mikker committed Sep 21, 2023
1 parent e93e8bf commit beadb7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails-settings/setting_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class SettingObject < ActiveRecord::Base
end
end

if Rails.version >= "7.1"
if ActiveRecord.version >= "7.1.0.beta1"
serialize :value, type: Hash
else
serialize :value, Hash
Expand Down

0 comments on commit beadb7f

Please sign in to comment.