# encoding: utf-8
module Mongoid #:nodoc:
module Criterion #:nodoc:
# Complex criterion are used when performing operations on symbols to get
# get a shorthand syntax for where clauses.
#
# Example:
#
# { :field => { "$lt" => "value" } }
# becomes:
# { :field.lt => "value }
class Complex
def make_hash v
{"$#{operator}" => v}
end
end
end
end