Class: Lockdown::ControllerContext

Inherits:
Context
  • Object
show all
Defined in:
lib/lockdown/context.rb

Instance Attribute Summary

Attributes inherited from Context

#allowed_methods, #name

Instance Method Summary collapse

Methods inherited from Context

#allows?, #to_s

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