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:
parent
930bed7a10
commit
6af18ed9e3
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue