Skip to content

Commit

Permalink
Fix Rails version comparison (lynndylanhurley#1614)
Browse files Browse the repository at this point in the history
  • Loading branch information
santib authored Nov 13, 2023
1 parent d4deea1 commit 6b0659f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b0659f

Please sign in to comment.