Skip to content

Commit 28248e3

Browse files
authored
Merge pull request heartcombo#5069 from igorkasyanchuk/master
Fix rails_51_and_up? method for Rails 6.rc1
2 parents 07f2712 + 612e302 commit 28248e3

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 >= 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)