8 lines
191 B
Ruby
8 lines
191 B
Ruby
class ProjectActivityCacheObserver < BaseObserver
|
|
observe :event
|
|
|
|
def after_create(event)
|
|
event.project.update_column(:last_activity_at, event.created_at) if event.project
|
|
end
|
|
end
|
|
|