spree/spree_email_to_friend — pull request #10 by greinacker (2012-04-18 19:27:29+00:00)
Title: fix 'send to other' link

This was broken for Spree 1.0.3; fix is from an email on the spree-user list from samt; I had the same problem so added this pull request. His email:

---
Got an issue with spree_email_to_friend, the following code:

@object.class.name.downcase in the file: email_sender_controller.rb returned "spree::product", which meant the that url was incorrect as it should just be "product".

My fix was:

@object.class.name.split("::").last.downcase