Sha256: 5a8fcab14a51ebe757bad1811d161ac8ec013c836e71fc3df191ed6091b61beb
Contents?: true
Size: 539 Bytes
Versions: 87
Compression:
Stored size: 539 Bytes
Contents
# 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: # # <tt>{ :field => { "$lt" => "value" } }</tt> # becomes: # <tt> { :field.lt => "value }</tt> class Complex attr_accessor :key, :operator # Create the new complex criterion. def initialize(opts = {}) @key, @operator = opts[:key], opts[:operator] end end end end
Version data entries
87 entries across 87 versions & 10 rubygems