Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author🙈 jacopo beschi 🙉 <intrip@gmail.com>2018-06-01 18:09:08 +0300
committerDouwe Maan <douwe@gitlab.com>2018-06-01 18:09:08 +0300
commit4c8783636cdc279aea802760146d58e6259bed57 (patch)
tree0dac9783096bc26435d0fba5366a6fa6a0d9925b /app/models/timelog.rb
parentd637fbe9af3f1efb9ce0a35c018a83c8b96d1f34 (diff)
Resolve "Update `updated_at` on an issue/mr on every issue/mr changes"
Diffstat (limited to 'app/models/timelog.rb')
-rw-r--r--app/models/timelog.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/timelog.rb b/app/models/timelog.rb
index e166cf69703..f4c5c581a11 100644
--- a/app/models/timelog.rb
+++ b/app/models/timelog.rb
@@ -2,8 +2,8 @@ class Timelog < ActiveRecord::Base
validates :time_spent, :user, presence: true
validate :issuable_id_is_present
- belongs_to :issue
- belongs_to :merge_request
+ belongs_to :issue, touch: true
+ belongs_to :merge_request, touch: true
belongs_to :user
def issuable