mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
Fix Rails 4 detection
This commit is contained in:
@@ -75,7 +75,11 @@ RUBY
|
||||
end
|
||||
|
||||
def inet?
|
||||
Devise.rails4? && postgresql?
|
||||
rails4? && postgresql?
|
||||
end
|
||||
|
||||
def rails4?
|
||||
Rails.version.start_with? '4'
|
||||
end
|
||||
|
||||
def postgresql?
|
||||
|
||||
Reference in New Issue
Block a user