1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Change the 'postgresql?' check to not connect to the database.

Closes #3181
This commit is contained in:
Lucas Mazza 2014-09-02 11:24:31 -03:00
parent 930bed7a10
commit 6af18ed9e3

View file

@ -83,7 +83,8 @@ RUBY
end
def postgresql?
ActiveRecord::Base.connection.adapter_name.downcase == "postgresql"
config = ActiveRecord::Base.configurations[Rails.env]
config && config['adapter'] == 'postgresql'
end
end
end