Module: CanTango::Rules::Adaptor::Relational
- Included in:
- ActiveRecord, DataMapper
- Defined in:
- lib/cantango/rules/adaptor/relational.rb
Instance Method Summary collapse
- #attribute_condition(attribute, user_scope) ⇒ Object (also: #include_condition)
Instance Method Details
#attribute_condition(attribute, user_scope) ⇒ Object Also known as: include_condition
5 6 7 |
# File 'lib/cantango/rules/adaptor/relational.rb', line 5 def attribute_condition attribute, user_scope { attribute.to_sym => user_scope.send(attribute) } end |