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

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.

I fixed this in the 0-70-stable branch first, but there was not a good way to test it over there. So, I wrote a test for the change in the master branch, and then ported the fix over.

Thanks,
-Scott