creationmachine/make_watchable — pull request #1 by sickboy (2012-05-07 07:54:24+00:00)
Title: Fix for Single-Table-Inheritance in conjunction with make_watchable

The problem comes from STI storing the base class that was used to derive other models, but the helper method looking for self.class.to_s (aka derived class, instead of base class)

The fix replaces usage of :watchable_type => self.class.to_s to use self.class.sti_base_class.to_s,
sti_base_class is a custom method that searches for the parent active record class, until it runs into ActiveRecord::Base.