Class: Lockdown::RootContext

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) ⇒ RootContext

Returns a new instance of RootContext.



15
16
17
18
# File 'lib/lockdown/context.rb', line 15

def initialize(name)
  @name = name
  @allowed_methods = %w(with_controller and_controller to_model)
end