阅读背景:

加载*路由后运行*的Rails初始化器?

来源:互联网 

I want to set a class attribute when my Rails app starts up. It requires inspecting some routes, so the routes need to be loaded before my custom code runs. I am having trouble finding a reliable place to hook in.I want to set a class attribute when my Rails a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: