Module: Mongoize

Extended by:
ActiveSupport::Concern
Included in:
Money
Defined in:
lib/money/mongoid/3x/money.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#mongoizeObject



7
8
9
# File 'lib/money/mongoid/3x/money.rb', line 7

def mongoize
  {'cents' => cents, 'currency_iso' => currency.iso_code}
end