mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Fix Rails 4 detection
This commit is contained in:
parent
f611b63069
commit
a2376d6ca1
1 changed files with 5 additions and 1 deletions
|
@ -75,7 +75,11 @@ RUBY
|
|||
end
|
||||
|
||||
def inet?
|
||||
Devise.rails4? && postgresql?
|
||||
rails4? && postgresql?
|
||||
end
|
||||
|
||||
def rails4?
|
||||
Rails.version.start_with? '4'
|
||||
end
|
||||
|
||||
def postgresql?
|
||||
|
|
Loading…
Add table
Reference in a new issue