Module: Mongoid::Matchable
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
ActiveSupport::Concern
|
|
Defined in: | lib/mongoid/matchable.rb |
Overview
This module contains all the behavior for Ruby implementations of MongoDB selectors.
Instance Method Summary
-
#_matches?(selector) ⇒ true | false
Determines if this document has the attributes to match the supplied MongoDB selector.
Instance Method Details
#_matches?(selector) ⇒ true
| false
Determines if this document has the attributes to match the supplied MongoDB selector. Used for matching on embedded associations.
# File 'lib/mongoid/matchable.rb', line 20
def _matches?(selector) Matcher::Expression.matches?(self, selector) end