Class: Lockdown::ModelContext
- Defined in:
- lib/lockdown/context.rb
Instance Attribute Summary
Attributes inherited from Context
Instance Method Summary collapse
-
#initialize(name) ⇒ ModelContext
constructor
A new instance of ModelContext.
Methods inherited from Context
Constructor Details
#initialize(name) ⇒ ModelContext
Returns a new instance of ModelContext.
29 30 31 32 |
# File 'lib/lockdown/context.rb', line 29 def initialize(name) @name = name @allowed_methods = %w(where) end |