lib/mongoid/stringified_symbol.rb in mongoid-7.3.5 vs lib/mongoid/stringified_symbol.rb in mongoid-7.4.0
- old
+ new
@@ -1,18 +1,17 @@
# frozen_string_literal: true
-# encoding: utf-8
# A class which sends values to the database as Strings but returns them to the user as Symbols.
module Mongoid
class StringifiedSymbol
class << self
# Convert the object from its mongo friendly ruby type to this type.
#
# @example Demongoize the object.
- # Symbol.demongoize(object)
+ # Mongoid::StringifiedSymbol.demongoize(object)
#
# @param [ Object ] object The object to demongoize.
#
# @return [ Symbol ] The object.
#
@@ -27,10 +26,10 @@
# Turn the object from the ruby type we deal with to a Mongo friendly
# type.
#
# @example Mongoize the object.
- # Symbol.mongoize("123.11")
+ # Mongoid::StringifiedSymbol.mongoize("123.11")
#
# @param [ Object ] object The object to mongoize.
#
# @return [ Symbol ] The object mongoized.
#