Class: Lockdown::ControllerContext
- Defined in:
- lib/lockdown/context.rb
Instance Attribute Summary
Attributes inherited from Context
Instance Method Summary collapse
-
#initialize(name) ⇒ ControllerContext
constructor
A new instance of ControllerContext.
Methods inherited from Context
Constructor Details
#initialize(name) ⇒ ControllerContext
Returns a new instance of ControllerContext.
22 23 24 25 |
# File 'lib/lockdown/context.rb', line 22 def initialize(name) @name = name @allowed_methods = %w(with_controller and_controller to_model only_methods except_methods) end |