Class: Gatekeeper::Configuration
- Inherits:
-
Object
- Object
- Gatekeeper::Configuration
- Defined in:
- lib/gatekeeper/configuration.rb
Instance Attribute Summary collapse
-
#bypass_allowed_info ⇒ Proc
A block to return bypess all info allowances (ex. for an admin user).
-
#response_ignored_variables ⇒ Array<Symbol>
A list of ignored variables in controller response.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 |
# File 'lib/gatekeeper/configuration.rb', line 9 def initialize @bypass_allowed_info = nil @response_ignored_variables = [] end |
Instance Attribute Details
#bypass_allowed_info ⇒ Proc
Returns a block to return bypess all info allowances (ex. for an admin user).
5 6 7 |
# File 'lib/gatekeeper/configuration.rb', line 5 def bypass_allowed_info @bypass_allowed_info end |
#response_ignored_variables ⇒ Array<Symbol>
Returns a list of ignored variables in controller response.
7 8 9 |
# File 'lib/gatekeeper/configuration.rb', line 7 def response_ignored_variables @response_ignored_variables end |