Rails ActiveAdmin before filter
-
28-10-2019 - |
Frage
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?
Lösung
In your app/controllers/application_controller.rb
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow