Class: Lockdown::ModelWithProcContext

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

Returns a new instance of ModelWithProcContext.



43
44
45
46
# File 'lib/lockdown/context.rb', line 43

def initialize(name)
  @name = name
  @allowed_methods = []
end