Question

Je veux ajouter "is_admin?"filtre à l'initialiseur ActiveAdmin.Dans quel fichier dois-je définir le "is_admin?"méthode?

  # == Controller Filters
  #
  # You can add before, after and around filters to all of your
  # Active Admin resources from here. 
  #
  config.before_filter :is_admin?
Était-ce utile?

La solution

Dans votre application / controllers / application_controller.rb

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top