module Mongoid::Extensions::Symbol::ClassMethods

def mongoize(object)

Returns:
  • (Symbol | nil) - The object mongoized or nil.

Parameters:
  • object (Object) -- The object to mongoize.

Other tags:
    Example: Mongoize the object. -
def mongoize(object)
  object.try(:to_sym)
end