Update base_notification.rb

Fix for polymorphic associations to objects using single table inheritance