1
0
Fork 0
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:
Adrian Pacała 2014-05-07 22:17:40 +02:00
parent f611b63069
commit a2376d6ca1

View file

@ -75,7 +75,11 @@ RUBY
end
def inet?
Devise.rails4? && postgresql?
rails4? && postgresql?
end
def rails4?
Rails.version.start_with? '4'
end
def postgresql?