Class: Lockdown::ModelWhereContext

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