diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-15 13:46:52 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-15 13:46:52 +0400 |
commit | 86584aa89f2a0a97eeef1e4eacb2cc8ea9380d12 (patch) | |
tree | a779b3a361b9dfb2bd7898dbf5b6c64598cca260 /app/observers | |
parent | cab7d7686f6c11bd77564eb73abd85fb9f61c58e (diff) |
Update project last_activity_at on creation
Diffstat (limited to 'app/observers')
-rw-r--r-- | app/observers/project_observer.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/observers/project_observer.rb b/app/observers/project_observer.rb index 83c1795b185..acbb719b69a 100644 --- a/app/observers/project_observer.rb +++ b/app/observers/project_observer.rb @@ -1,5 +1,7 @@ class ProjectObserver < BaseObserver def after_create(project) + project.update_column(:last_activity_at, project.created_at) + return true if project.forked? if project.import? |