lib/money-rails/mongoid/money.rb
# Converts an object of this instance into a database friendly value.
Converts an object of this instance into a database friendly value.
Converts an object of this instance into a database friendly value .
def mongoize
    {
      :cents        => cents.mongoize,
      :currency_iso => currency.iso_code.mongoize
    }
  end
def mongoize { :cents => cents . mongoize , :currency_iso => currency . iso_code . mongoize } end
Converts an object of this instance into a database friendly value.
Converts an object of this instance into a database friendly value .