app/models/ss/extensions/object_ids.rb
# Takes any possible object and converts it to how it would be
# stored in the database.
Takes any possible object and converts it to how it would be
stored in the database.
Takes any possible object and converts it to how it would be stored in the database .
def mongoize(object)
      case object
      when nil
        nil
      when self.class
        object.mongoize
      when Array
        mongoize_array(object)
      else
        mongoize_array(Array.wrap(object))
      end
    end
def mongoize ( object ) case object when nil nil when self . class object . mongoize when Array mongoize_array ( object ) else mongoize_array ( Array . wrap ( object ) ) end end
Takes any possible object and converts it to how it would be
stored in the database.
Takes any possible object and converts it to how it would be stored in the database .
object
<not_specific>