Skip to content

Commit

Permalink
shared examples now work properly EXCEPT that when running tests, swi…
Browse files Browse the repository at this point in the history
…tching adapters still generates sql for the old adapter, haven't figured out yet how to reset it
  • Loading branch information
bradrobertson committed Sep 15, 2011
1 parent 5881e2c commit 764e9c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/apartment/adapters/abstract_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def create_database(database)
def connect_to_new(database)
ActiveRecord::Base.establish_connection multi_tenantify(database)
ActiveRecord::Base.connection.active? # call active? to manually check if this connection is valid

rescue ActiveRecord::StatementInvalid => e
raise DatabaseNotFound, e
end
Expand Down

0 comments on commit 764e9c7

Please sign in to comment.