mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Money accessors changed to dollars/cents
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user