From a7e21685eaa8d7b81fa392de196c72eca536821d Mon Sep 17 00:00:00 2001 From: Sean Schofield Date: Thu, 22 Dec 2011 21:21:06 -0500 Subject: [PATCH] Use number_to_currency (required by Spree 1.0.0 --- app/overrides/tweak_product_list_item.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/overrides/tweak_product_list_item.rb b/app/overrides/tweak_product_list_item.rb index 78d66ec..1651189 100644 --- a/app/overrides/tweak_product_list_item.rb +++ b/app/overrides/tweak_product_list_item.rb @@ -1,10 +1,10 @@ Deface::Override.new(:virtual_path => 'spree/shared/_products', :name => 'tweak_product_list_item', :replace => '[data-hook="products_list_item"]', - :text => %q{
  • - <%= link_to(product, :class => 'info') do %> - <%= product.name %> - <%= product_price(product) %> - <% end %> - <%= link_to small_image(product), product %> -
  • }) + :text => %q{
  • + <%= link_to(product, :class => 'info') do %> + <%= product.name %> + <%= number_to_currency product.price %> + <% end %> + <%= link_to small_image(product), product %> +
  • })