开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜