문제

I want to add "is_admin?" filter to ActiveAdmin initializer. In which file should I define the "is_admin?" method?

  # == Controller Filters
  #
  # You can add before, after and around filters to all of your
  # Active Admin resources from here. 
  #
  config.before_filter :is_admin?
도움이 되었습니까?

해결책

In your app/controllers/application_controller.rb

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top