Sha256: 1c31d1270fdb6b36153f939f27611a98b2a5da723f90e19469873c85ab742988
Contents?: true
Size: 446 Bytes
Versions: 67
Compression:
Stored size: 446 Bytes
Contents
# 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
67 entries across 62 versions & 3 rubygems