spree/spree — pull request #3822 by hbirch (2013-10-04 02:07:15+00:00)
Title: use display_price helper whenever possible to allow overriding price display behavior

Let me know if there are more steps I need to do in submitting this. This is my first pull request and I am not all the way familiar with the procedure.

This change takes advantage of display_price to avoid writing repetitive and complex code. In the process it also now allows for easy overriding of price display behavior. In my particular application it allows me to more easily implement a price-per-unit feature.

Since display_price already works with both products and variants the @product.master is unnecessary as far as I can tell.