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:
authorJasper Maes <jaspermaes.jm@gmail.com>2018-06-13 08:48:05 +0300
committerJasper Maes <jaspermaes.jm@gmail.com>2018-06-13 08:52:35 +0300
commitbe16f54d9d167c6338367c8175aaf135c44dab94 (patch)
treef37de508a845b4859f46e569afb5d1a55fbcdb58
parentfba123a329f44ed80bbf71feb639dab9afc13d6f (diff)
Rails5 fix expected `issuable.reload.updated_at` to have changed
-rw-r--r--app/models/timelog.rb5
-rw-r--r--changelogs/unreleased/rails5-fix-47366.yml5
2 files changed, 10 insertions, 0 deletions
diff --git a/app/models/timelog.rb b/app/models/timelog.rb
index f4c5c581a11..659146f43e4 100644
--- a/app/models/timelog.rb
+++ b/app/models/timelog.rb
@@ -19,4 +19,9 @@ class Timelog < ActiveRecord::Base
errors.add(:base, 'Issue or Merge Request ID is required')
end
end
+
+ # Rails5 defaults to :touch_later, overwrite for normal touch
+ def belongs_to_touch_method
+ :touch
+ end
end
diff --git a/changelogs/unreleased/rails5-fix-47366.yml b/changelogs/unreleased/rails5-fix-47366.yml
new file mode 100644
index 00000000000..7ea03d2b95e
--- /dev/null
+++ b/changelogs/unreleased/rails5-fix-47366.yml
@@ -0,0 +1,5 @@
+---
+title: Rails5 fix expected `issuable.reload.updated_at` to have changed
+merge_request: 19733
+author: Jasper Maes
+type: fixed