Module: Mongoid::Extensions::Symbol
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/mongoid/extensions/symbol.rb |
Overview
Adds type-casting behavior to Symbol
class.
Instance Attribute Summary
- #mongoid_id? ⇒ true | false readonly deprecated Deprecated.
Instance Attribute Details
#mongoid_id? ⇒ true
| false
(readonly)
Deprecated.
Is the symbol a valid value for a ::Mongoid
id?
# File 'lib/mongoid/extensions/symbol.rb', line 17
def mongoid_id? to_s.mongoid_id? end