gitlab-org--gitlab-foss/app/observers/project_activity_cache_observer.rb

9 lines
191 B
Ruby
Raw Normal View History

class ProjectActivityCacheObserver < BaseObserver
observe :event
def after_create(event)
event.project.update_column(:last_activity_at, event.created_at) if event.project
end
end