Sha256: 704c931ebe00026062e2ef410ab7bc5cbf359272fed630997b9a003311524299
Contents?: true
Size: 242 Bytes
Versions: 14
Compression:
Stored size: 242 Bytes
Contents
module MongoModel module Types class String < Object def cast(value) value.to_s if value && value.respond_to?(:to_s) end end end end MongoModel::Types.register_converter(String, MongoModel::Types::String.new)
Version data entries
14 entries across 14 versions & 1 rubygems