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, hash = {}) ⇒ SimpleConstrain

Returns a new instance of SimpleConstrain.



6
7
8
9
10
11
# File 'lib/controlist/permissions/simple_constrain.rb', line 6

def initialize(property, value, hash={})
  self.property = property.to_s
  self.value = value
  self.relation = hash[:relation]
  self.table_name = hash[:table_name]
end