spree/spree — pull request #974 by buddhi-desilva (2012-01-14 13:00:14+00:00)
Title: Fixes/Tweaks

flexi_rate.rb:5 - Max Doesn't have to be a float. Changed to an int.
flexi_rate.rb:17 - Seemingly self.preferred_max_items is returned as a string. Gives the error 'comparison of String with 0 failed'. Converting to an int before assigning.
flexi_rate.rb:22, 24 - Similar issues as above. Converting to a float before calculation.

(my env: ruby-1.9.2-p180 / rails 3.1.3)