Skip to content

Commit 612e302

Browse files
Use better syntax to compare gem version
1 parent 75e8555 commit 612e302

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/devise/failure_app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def root_path_defined?(context)
279279
end
280280

281281
def rails_51_and_up?
282-
Rails::VERSION::MAJOR >= 6 || (Rails::VERSION::MAJOR >= 5 && Rails::VERSION::MINOR >= 1)
282+
Rails.gem_version >= Gem::Version.new("5.1")
283283
end
284284
end
285285
end

0 commit comments

Comments
 (0)