Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Commit

Permalink
Fix money handling
Browse files Browse the repository at this point in the history
In earlier versions of Solidus, Spree::Money doesn't expose #format, so
call it on the money object directly.
  • Loading branch information
jarednorman committed May 10, 2016
1 parent bfc8bbb commit 265c5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/spree/products/index.rss.builder
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ xml.rss version: "2.0", "xmlns:g" => "http://base.google.com/ns/1.0" do
xml.link product_url(feed_product.product)
xml.tag! 'g:image_link', feed_product.image_link
xml.tag! 'g:condition', feed_product.condition
xml.tag! 'g:price', feed_product.price.format(symbol: false, with_currency: true)
xml.tag! 'g:price', feed_product.price.money.format(symbol: false, with_currency: true)
end
end
end
Expand Down

0 comments on commit 265c5f6

Please sign in to comment.