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?
Maybe you find a fitting notification (ActiveSupport::Notifications
). See http://railscasts.com/episodes/249-notifications-in-rails-3 for a great overview.
精彩评论