Class: Controlist::Permissions::SimpleConstrain
- Defined in:
- lib/controlist/permissions/simple_constrain.rb
Instance Attribute Summary
Attributes inherited from Constrain
#clause, #operator, #proc_persistence, #proc_read, #property, #relation, #table_name, #value
Instance Method Summary collapse
-
#initialize(property, value) ⇒ SimpleConstrain
constructor
A new instance of SimpleConstrain.
Constructor Details
#initialize(property, value) ⇒ SimpleConstrain
Returns a new instance of SimpleConstrain.
6 7 8 9 |
# File 'lib/controlist/permissions/simple_constrain.rb', line 6 def initialize(property, value) self.property = property.to_s self.value = value end |