Module: OffsitePayments::MoneyCompatibility

Included in:
Helper
Defined in:
lib/offsite_payments/helper.rb

Instance Method Summary collapse

Instance Method Details

#to_cents(money) ⇒ Object



3
4
5
# File 'lib/offsite_payments/helper.rb', line 3

def to_cents(money)
  money.try(:cents) || money.try(:subunits) || money
end