Class: Lockdown::ModelContext

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