Blankman
Blankman

Reputation: 267320

In Rails 3,is there an event that fires before the connection string is set?

In Rails 3,is there an event that fires before the connection string is set?

I want to override the connection string on based on some criteria, and want the entire request to use this overriden connection string.

Was hoping I could do this easily by overriding some event that fires before it is set?

Upvotes: 0

Views: 73

Answers (1)

d135-1r43
d135-1r43

Reputation: 2485

Maybe you find a fitting notification (ActiveSupport::Notifications). See http://railscasts.com/episodes/249-notifications-in-rails-3 for a great overview.

Upvotes: 1

Related Questions