search for: publish_activity_feed_item

Displaying 1 result from an estimated 1 matches for "publish_activity_feed_item".

2009 Sep 27
1
Switchboard - Easy to use global ActiveRecord event listeners
...chboard.listeners << ActivityFeedListener Then, create a listener class that defines methods for after_create, after_update and after_destroy: class ActivityFeedListener class << self def after_create(record) description = "#{record.class.name} was created" publish_activity_feed_items record, description end def after_update(record) description = "#{record.class.name} was updated" publish_activity_feed_items record, description end def after_destroy(record) description = "#{record.class.name} was deleted" publish_act...