summaryrefslogtreecommitdiff
path: root/app/models/todo.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-18 13:24:47 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-18 13:24:47 -0300
commit2a8858ca8adbc54d7e24e698fa8ce370a1e91157 (patch)
treef57df67358d3c113412e9f9f910e18515f835ddf /app/models/todo.rb
parent05975e96f98521a219788a0bec3d6f71458833e1 (diff)
downloadgitlab-ce-2a8858ca8adbc54d7e24e698fa8ce370a1e91157.tar.gz
Rename `Todo#to_reference` to `Todo#target_reference`
Since we're not actually returning a todo reference.
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 b135407a8ee..ab804d712a0 100644
--- a/app/models/todo.rb
+++ b/app/models/todo.rb
@@ -71,7 +71,7 @@ class Todo < ActiveRecord::Base
nil
end
- def to_reference
+ def target_reference
if for_commit?
target.short_id
else