module Mongoid::Extensions::Symbol
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.
@since 2.3.1
# File lib/mongoid/extensions/symbol.rb, line 16 def mongoid_id? to_s.mongoid_id? end