BigW Consortium Gitlab

project_activity_cache_observer.rb 191 Bytes
Newer Older
1 2 3 4
class ProjectActivityCacheObserver < BaseObserver
  observe :event

  def after_create(event)
5
    event.project.update_column(:last_activity_at, event.created_at) if event.project
6 7 8
  end
end