mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
Rails 4.1 API change
This commit is contained in:
parent
ffd18ca0ca
commit
dddb2e19fc
1 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ module RailsMultisite
|
|||
end
|
||||
|
||||
@@db_spec_cache = Hash[*configs.map do |k, data|
|
||||
[k, spec_klass::Resolver.new(k, configs).spec]
|
||||
[k, spec_klass::Resolver.new(configs).spec(k)]
|
||||
end.flatten]
|
||||
|
||||
@@host_spec_cache = {}
|
||||
|
@ -112,7 +112,7 @@ module RailsMultisite
|
|||
end
|
||||
end
|
||||
|
||||
@@default_spec = spec_klass::Resolver.new(Rails.env, ActiveRecord::Base.configurations).spec
|
||||
@@default_spec = spec_klass::Resolver.new(ActiveRecord::Base.configurations).spec(Rails.env)
|
||||
ActiveRecord::Base.configurations[Rails.env]["host_names"].each do |host|
|
||||
@@host_spec_cache[host] = @@default_spec
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue