Commit be16f54d authored by Jasper Maes's avatar Jasper Maes

Rails5 fix expected `issuable.reload.updated_at` to have changed

parent fba123a3
...@@ -19,4 +19,9 @@ class Timelog < ActiveRecord::Base ...@@ -19,4 +19,9 @@ class Timelog < ActiveRecord::Base
errors.add(:base, 'Issue or Merge Request ID is required') errors.add(:base, 'Issue or Merge Request ID is required')
end end
end end
# Rails5 defaults to :touch_later, overwrite for normal touch
def belongs_to_touch_method
:touch
end
end end
---
title: Rails5 fix expected `issuable.reload.updated_at` to have changed
merge_request: 19733
author: Jasper Maes
type: fixed
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