Module: Mongoid::Extensions::Symbol::Checks
- Included in:
- Symbol
- Defined in:
- lib/mongoid/extensions/symbol/checks.rb
Overview
This module has object checks in it.
Instance Method Summary collapse
-
#mongoid_id? ⇒ true, false
Is the symbol a valid value for a Mongoid id?.
Instance Method Details
#mongoid_id? ⇒ true, false
Is the symbol a valid value for a Mongoid id?
17 18 19 |
# File 'lib/mongoid/extensions/symbol/checks.rb', line 17 def mongoid_id? to_s =~ /^(|_)id$/ end |