开发者

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

开发者 https://www.devze.com 2023-02-06 01:56 出处:网络
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 conn

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号