![](/img/trans.png)
[英]How to properly include ActionView::Helpers in the class outside of ActionController::Base?
[英]An include before class ApplicationController < ActionController::Base
SecurityMethods被“混合”到什么類中? 我通常在類定義后看到include。
include SecurityMethods
class ApplicationController < ActionController::Base
.
.
.
end
在這種情況下, SecurityMethods
被混合到Object
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.