Module: Mongoid::Extensions::BigDecimal

Defined in:
lib/mongoid/extensions/big_decimal.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#mongoizeObject

Turn the object from the ruby type we deal with to a Mongo friendly type.

Examples:

Mongoize the object.

object.mongoize

Returns:

Since:

  • 3.0.0



15
16
17
# File 'lib/mongoid/extensions/big_decimal.rb', line 15

def mongoize
  to_s
end