Sha256: 55686a4d56b645ebd83b1f501e89456e4862aab168421648c5d058816f13bffc
Contents?: true
Size: 477 Bytes
Versions: 21
Compression:
Stored size: 477 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 module Mongoid class Boolean class << self # Turn the object from the ruby type we deal with to a Mongo friendly # type. # # @example Mongoize the object. # Boolean.mongoize("123.11") # # @return [ String ] The object mongoized. # # @since 3.0.0 def mongoize(object) ::Boolean.evolve(object) end alias :evolve :mongoize end end end
Version data entries
21 entries across 21 versions & 2 rubygems