![](/img/trans.png)
[英]Can't get skip_before_filter to work with ActiveAdmin in Rails
[英]Rails ActiveAdmin before filter
我想添加“is_admin?” 過濾到ActiveAdmin初始化程序。 我應該在哪個文件中定義“is_admin?” 方法?
# == Controller Filters
#
# You can add before, after and around filters to all of your
# Active Admin resources from here.
#
config.before_filter :is_admin?
在你的app / controllers / application_controller.rb中
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.