Class: Controlist::Permissions::SimpleConstrain

Inherits:
Constrain
  • Object
show all
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

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