From dddb2e19fc05cc691d97e79afa84075eb4ef58d0 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 8 May 2014 15:22:02 +1000 Subject: [PATCH] Rails 4.1 API change --- .../lib/rails_multisite/connection_management.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb b/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb index f22910bc7..50e4843fb 100644 --- a/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb +++ b/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb @@ -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