Module: CanTango::Adaptor::Relational

Included in:
ActiveRecord, DataMapper
Defined in:
lib/cantango/adaptor/relational.rb

Instance Method Summary collapse

Instance Method Details

#attribute_condition(attribute, candidate) ⇒ Object Also known as: include_condition



3
4
5
# File 'lib/cantango/adaptor/relational.rb', line 3

def attribute_condition attribute, candidate
  { attribute.to_sym => candidate.send(attribute) }
end