From 7f7ee25e2746b07e99ae9205e46de8a0413fc5d0 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 20 May 2016 12:26:58 +1000 Subject: [PATCH] Money accessors changed to dollars/cents --- lib/spree/money_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spree/money_decorator.rb b/lib/spree/money_decorator.rb index 3479bbd9a2..fc249151f4 100644 --- a/lib/spree/money_decorator.rb +++ b/lib/spree/money_decorator.rb @@ -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