Permalink
Browse files

setting saerchpath after ensuring schema

  • Loading branch information...
1 parent b13d969 commit 9fa236d84e5eb37afe5cdd4316b8246a086a7b9f @dceballos committed May 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/roomer/schema.rb
View
@@ -40,8 +40,8 @@ def self.dump(scope=:tenanted)
end
def self.load(schema_name, scope=:tenanted)
- ActiveRecord::Base.connection.schema_search_path = "#{schema_name},#{Roomer.shared_schema_name}"
ensuring_schema(schema_name) do
+ ActiveRecord::Base.connection.schema_search_path = "#{schema_name},#{Roomer.shared_schema_name}"
filename = begin
if scope == :shared
Roomer.shared_schema_filename

0 comments on commit 9fa236d

Please sign in to comment.