Sha256: c96000ea8c57045a88a81e49f1ed2c5f95a281ff41f089db24f69927190ab402
Contents?: true
Size: 777 Bytes
Versions: 1
Compression:
Stored size: 777 Bytes
Contents
require 'mongoid/extensions/hash/criteria_helpers' require 'mongoid/extensions/symbol/inflections' require 'mongodoc/matchers' require 'mongodoc/contexts' require 'mongoid/criteria' module MongoDoc module Criteria # Create a criteria for this +Document+ class # # <tt>Person.criteria</tt> def criteria Mongoid::Criteria.new(self) end delegate \ :and, :any_in, :cache, :enslave, :excludes, :extras, :id, :in, :limit, :not_in, :offset, :only, :order_by, :page, :per_page, :skip, :where, :to => :criteria end end Hash.send(:include, Mongoid::Extensions::Hash::CriteriaHelpers) Symbol.send(:include, Mongoid::Extensions::Symbol::Inflections)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongodoc-0.2.4 | lib/mongodoc/criteria.rb |