diff --git a/lib/devise.rb b/lib/devise.rb index d4d54aeb..0451876d 100644 --- a/lib/devise.rb +++ b/lib/devise.rb @@ -297,10 +297,6 @@ module Devise 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