lib/money/micro_money.rb in sevenwire-money-2.3.3 vs lib/money/micro_money.rb in sevenwire-money-2.3.4

- old
+ new

@@ -1,15 +1,12 @@ class MicroMoney < Money # Forces the :units => :millicents option. - def initialize_with_millicents(money, *args) + def initialize(money, *args) options = args.last.is_a?(Hash) ? args.pop : {} options.merge!(:units => :millicents) - initialize_without_millicents(money, *(args << options)) + super(money, *(args << options)) end - - alias :initialize_without_millicents :initialize - alias :initialize :initialize_with_millicents ### OUTPUT/CONVERSIONS # Conversion to MicroMoney.