Skip to content

Commit

Permalink
Ensure adapater specific code is loaded on ActiveRecord::Base.establi…
Browse files Browse the repository at this point in the history
…sh_connection
  • Loading branch information
josh committed Jul 22, 2008
1 parent 92f9448 commit 8b85878
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -211,6 +211,7 @@ def self.establish_connection(spec = nil)
clear_active_connection_name
@active_connection_name = name
@@defined_connections[name] = spec
connection
when Symbol, String
if configuration = configurations[spec.to_s]
establish_connection(configuration)
Expand Down

3 comments on commit 8b85878

@rmm5t
Copy link
Contributor

@rmm5t rmm5t commented on 8b85878 Jul 26, 2008

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Josh, This change eliminates AR logging in my development environment (using mysql). Was this intentional?

@josh
Copy link
Contributor Author

@josh josh commented on 8b85878 Jul 26, 2008

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. Could you pease file a formal ticket on Lighthouse and I’ll have a look shorty. Thanks for the heads up.

@rmm5t
Copy link
Contributor

@rmm5t rmm5t commented on 8b85878 Jul 27, 2008

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ticket created: http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/711-development-ar-logging-broken-by-8b858782

Please sign in to comment.