gitlab-org--gitlab-foss/app/observers/project_activity_cache_observer.rb
2013-04-10 14:38:04 +03:00

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