spree/spree — pull request #2167 by nickfrandsen (2012-10-31 12:31:39+00:00)
Title: refactored out logic that determines on_sale and on_display.

Currently the logic that determines whether a product is on_sale is held in the view. So is the code that determines whether a product should be show on the products page. I have refactored these out as on_sale? and on_display respectively. The main reason for wanting these methods as a standalone is so that I can easily override them to hide some products that I dont want on sale.