Top Level Namespace
Defined Under Namespace
Modules: Gatekeeper Classes: GatekeeperController
Instance Method Summary collapse
-
#config ⇒ Object
Example configuration file for rails-gatekeeper gem.
Instance Method Details
#config ⇒ Object
Example configuration file for rails-gatekeeper gem.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/generators/templates/gatekeeper.rb', line 3 Gatekeeper.configure do |config| ## # Determines which user can bypass all allowed info, and # see everything of a specified model. Usually this applies # to admin users. # # Example: # config.bypass_allowed_info = proc do |user| # user.is_admin? # end # # Defaults to nil, which is equal to no bypassable users. # # config.bypass_allowed_info = nil ## # Sets which controller instance variables to not include in the response. # # Defaults to empty array. # # config.response_ignored_variables = [] end |