2013-04-02 22:05:00 -04:00
|
|
|
class ProjectActivityCacheObserver < BaseObserver
|
|
|
|
observe :event
|
|
|
|
|
|
|
|
def after_create(event)
|
2013-04-10 07:38:04 -04:00
|
|
|
event.project.update_column(:last_activity_at, event.created_at) if event.project
|
2013-04-02 22:05:00 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|