Skip to content

Commit

Permalink
Merge pull request #5250 from hyuraku/remove_useless_rails51
Browse files Browse the repository at this point in the history
remove unused rails51? method
  • Loading branch information
carlosantoniodasilva committed Jun 9, 2020
2 parents a3c0c65 + 6d37e32 commit 87108ad
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/devise.rb
Expand Up @@ -297,10 +297,6 @@ module Test
mattr_accessor :sign_in_after_change_password
@@sign_in_after_change_password = true

def self.rails51? # :nodoc:
Rails.gem_version >= Gem::Version.new("5.1.x")
end

def self.activerecord51? # :nodoc:
defined?(ActiveRecord) && ActiveRecord.gem_version >= Gem::Version.new("5.1.x")
end
Expand Down

0 comments on commit 87108ad

Please sign in to comment.