2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

BUGFIX: restore wasn't working when not using multisite in production

This commit is contained in:
Régis Hanol 2014-02-20 18:42:17 +01:00
parent b696c96a19
commit 1f90f3044f
4 changed files with 21 additions and 30 deletions

View file

@ -80,19 +80,7 @@ module RailsMultisite
def self.current_hostname
config = ActiveRecord::Base.connection_pool.spec.config
config[:host_names].nil? ? current_host : config[:host_names].first
end
def self.current_host
ActiveRecord::Base.connection_pool.spec.config[:host]
end
def self.current_username
ActiveRecord::Base.connection_pool.spec.config[:username]
end
def self.current_password
ActiveRecord::Base.connection_pool.spec.config[:password]
config[:host_names].nil? ? config[:host] : config[:host_names].first
end
def self.clear_settings!