spree/spree_related_products — pull request #20 by mscottford (2011-12-05 16:08:19+00:00)
Title: Fixes a crash in Product#method_missing when the spree_relation_types missing (in 0-70-stable)

Hi,

When the spree_relation_types table is missing, and Product#method_missing is called, then an ActiveRecord::StatementInvalid exception is thrown. Since this can happen during a migration from a different extension that might run before the table is created, I made Product#method_missing more durable in that instance.

There are no tests in this version, because it was too much of a pain to add them. To see tests for this, check the version of the fix for the master branch. (pull request #19)

Thanks,
-Scott