summaryrefslogtreecommitdiff
path: root/app/models/todo.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-18 10:32:22 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-18 11:07:30 -0300
commit231d4fb9f8a30e97fd9bcb7176ad8337557f6ea0 (patch)
tree5604a66607d0d0e888d7854b1d75af474bce15cb /app/models/todo.rb
parent2eeeb266e36abdbe78be8f71081bb19e83175819 (diff)
downloadgitlab-ce-231d4fb9f8a30e97fd9bcb7176ad8337557f6ea0.tar.gz
Use `Commit#short_id` instead of `Commit.truncate_sha`
Diffstat (limited to 'app/models/todo.rb')
-rw-r--r--app/models/todo.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/todo.rb b/app/models/todo.rb
index 4be5806b8d1..b135407a8ee 100644
--- a/app/models/todo.rb
+++ b/app/models/todo.rb
@@ -73,7 +73,7 @@ class Todo < ActiveRecord::Base
def to_reference
if for_commit?
- Commit.truncate_sha(commit_id)
+ target.short_id
else
target.to_reference
end