8

「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?
4

1 に答える 1

15

app/controllers/application_controller.rb で

于 2011-09-20T13:33:51.443 に答える