mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 17:46:07 +10:00
fixed connection detection so settings can be read from the database
This commit is contained in:
@@ -4,7 +4,7 @@ module Gitlab
|
||||
key = :current_application_settings
|
||||
|
||||
RequestStore.store[key] ||= begin
|
||||
if ActiveRecord::Base.connected? && ActiveRecord::Base.connection.table_exists?('application_settings')
|
||||
if ActiveRecord::Base.connection.active? && ActiveRecord::Base.connection.table_exists?('application_settings')
|
||||
ApplicationSetting.current || ApplicationSetting.create_from_defaults
|
||||
else
|
||||
fake_application_settings
|
||||
|
||||
Reference in New Issue
Block a user