Class: Lockdown::ModelWhereContext
- Defined in:
- lib/lockdown/context.rb
Instance Attribute Summary
Attributes inherited from Context
Instance Method Summary collapse
-
#initialize(name) ⇒ ModelWhereContext
constructor
A new instance of ModelWhereContext.
Methods inherited from Context
Constructor Details
#initialize(name) ⇒ ModelWhereContext
Returns a new instance of ModelWhereContext.
36 37 38 39 |
# File 'lib/lockdown/context.rb', line 36 def initialize(name) @name = name @allowed_methods = %w(is_in includes equals) end |