summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-04-16 15:40:25 +0800
committerHeinrich Lee Yu <heinrich@gitlab.com>2019-04-16 19:57:49 +0800
commite0b6838a90b47f34c1109b6a9727f249c6faebca (patch)
tree42eca4e94f51500019b54f3d04277b1ae1307428 /app
parent7994db791ab758d81f7a446eb8e2338336e184fd (diff)
downloadgitlab-ce-e0b6838a90b47f34c1109b6a9727f249c6faebca.tar.gz
Set correct timestamps when creating past issues58361-issue-create-system-note-timestamp
Sets `system_note_timestamp` from `created_at`
Diffstat (limited to 'app')
-rw-r--r--app/models/concerns/noteable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/noteable.rb b/app/models/concerns/noteable.rb
index 423ce7e7db1..bfd0c36942b 100644
--- a/app/models/concerns/noteable.rb
+++ b/app/models/concerns/noteable.rb
@@ -13,7 +13,7 @@ module Noteable
end
end
- # The timestamp of the note (e.g. the :updated_at attribute if provided via
+ # The timestamp of the note (e.g. the :created_at or :updated_at attribute if provided via
# API call)
def system_note_timestamp
@system_note_timestamp || Time.now # rubocop:disable Gitlab/ModuleWithInstanceVariables