Move the version check to the lib folder

Closes #4514.
Fixes #4513.
This commit is contained in:
Rafael Mendonça França
2017-04-29 10:12:28 -07:00
parent 244cc60d35
commit 0591d92f53
2 changed files with 4 additions and 4 deletions

View File

@@ -4,10 +4,6 @@ end
module Devise
# Detection for minor differences between Rails 4 and 5, and 5.1 in tests.
def self.rails51?
Rails.version.start_with? '5.1'
end
def self.rails5?
Rails.version.start_with? '5'
end