Money accessors changed to dollars/cents

This commit is contained in:
Rohan Mitchell
2016-05-20 12:26:58 +10:00
parent 1765ba0422
commit 7f7ee25e27

View File

@@ -6,7 +6,7 @@ Spree::Money.class_eval do
end
def rounded
@options[:no_cents] = true if @money.amount % 1 == 0
@options[:no_cents] = true if @money.dollars % 1 == 0
to_s
end
end