Class: DataMapper::Query::Operator
- Defined in:
- lib/mongo_mapper/support.rb
Overview
Compatability with DataMapper
Instance Method Summary collapse
Instance Method Details
#to_criteria(value) ⇒ Object
168 169 170 |
# File 'lib/mongo_mapper/support.rb', line 168 def to_criteria(value) {@target => {"$#{@operator}" => value}} end |