spree/spree_related_products — pull request #53 by innovega (2013-02-13 11:17:12+00:00)
Title: 1 1 stable

Hello, I am using branch 1-1-stable of your gem, spree_related products.
I added some fixes:
1- I added some translations from the master branch.
2- Since Rails 3.2 version, you have to add attr_accesible to your desired attributes. I set attr_accessible to the preferred_item_total_threshold method in Calculator::RelatedProductDiscount. So the error "Can't mass-assign protected attributes: preferred_item_total_threshold" is fixed.
3- Finally, I commented two lines in Calculator::RelatedProductDiscount:
# preference :item_total_threshold, :decimal, :default => 5
# attr_accessible :preferred_item_total_threshold
Because this preference of the calculator is not been used anywhere.
I think this changes will work in other branches too.