module Mongoid::Extensions::Symbol
Adds type-casting behavior to Symbol
class.
Public Instance Methods
mongoid_id?()
click to toggle source
Is the symbol a valid value for a Mongoid
id?
@example Is the string an id value?
:_id.mongoid_id?
@return [ true | false ] If the symbol is :id or :_id. @deprecated
# File lib/mongoid/extensions/symbol.rb, line 17 def mongoid_id? to_s.mongoid_id? end