Module: Mongoid::Extensions::Symbol
- Defined in:
- lib/mongoid/extensions/symbol.rb
Overview
Adds type-casting behavior to Symbol class.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #mongoid_id? ⇒ true | false deprecated Deprecated.
Instance Method Details
#mongoid_id? ⇒ true | false
Deprecated.
Is the symbol a valid value for a Mongoid id?
17 18 19 |
# File 'lib/mongoid/extensions/symbol.rb', line 17 def mongoid_id? to_s.mongoid_id? end |