Pergunta

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?
Foi útil?

Solução

In your app/controllers/application_controller.rb

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top