spree/spree — pull request #5310 by davidlibrera (2014-09-02 21:11:37+00:00)
Title: available scope now cares about 'currency' param

I noticed that if a product has 2 prices with different currencies, the Spree::Product.available scope returns the product more than one time.
Spree::Product.available ignores the currency param. I added the .where conditions on Spree::Price table