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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With