From 6b0659f18c678b319913d0fb053e96aa555857aa Mon Sep 17 00:00:00 2001 From: Santiago Bartesaghi Date: Mon, 13 Nov 2023 09:33:58 -0300 Subject: [PATCH] Fix Rails version comparison (#1614) --- app/models/devise_token_auth/concerns/active_record_support.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/devise_token_auth/concerns/active_record_support.rb b/app/models/devise_token_auth/concerns/active_record_support.rb index 69d203205..380658a3d 100644 --- a/app/models/devise_token_auth/concerns/active_record_support.rb +++ b/app/models/devise_token_auth/concerns/active_record_support.rb @@ -2,7 +2,7 @@ module DeviseTokenAuth::Concerns::ActiveRecordSupport extend ActiveSupport::Concern included do - if Rails::VERSION::MAJOR >= 7 && Rails::VERSION::MINOR >= 1 + if Rails.gem_version >= Gem::Version.new("7.1.0.a") serialize :tokens, coder: DeviseTokenAuth::Concerns::TokensSerialization else serialize :tokens, DeviseTokenAuth::Concerns::TokensSerialization