Commit d2c70b89 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Use update_column to set :last_activity_at for project

parent c610f2da
...@@ -2,7 +2,7 @@ class ProjectActivityCacheObserver < BaseObserver ...@@ -2,7 +2,7 @@ class ProjectActivityCacheObserver < BaseObserver
observe :event observe :event
def after_create(event) def after_create(event)
event.project.update_attribute(:last_activity_at, event.created_at) if event.project event.project.update_column(:last_activity_at, event.created_at) if event.project
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment