summaryrefslogtreecommitdiff
path: root/app/models/todo.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-02-20 12:01:50 -0800
committerDouwe Maan <douwe@selenight.nl>2016-02-20 12:01:55 -0800
commit42cbcb23478f7b07c0c49e0020a8d3c834322e87 (patch)
tree58abbccf9dc9d40c147658ea293c6f3aed4a82e7 /app/models/todo.rb
parentd53ae7f14d7c24ee590ba57632d267ec01706aa4 (diff)
downloadgitlab-ce-42cbcb23478f7b07c0c49e0020a8d3c834322e87.tar.gz
"X assigned you Y" instead of "X assigned Y"
Diffstat (limited to 'app/models/todo.rb')
-rw-r--r--app/models/todo.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/app/models/todo.rb b/app/models/todo.rb
index 7a9b0212f9f..34d71c1b0d3 100644
--- a/app/models/todo.rb
+++ b/app/models/todo.rb
@@ -43,13 +43,6 @@ class Todo < ActiveRecord::Base
state :done
end
- def action_name
- case action
- when ASSIGNED then 'assigned'
- when MENTIONED then 'mentioned you on'
- end
- end
-
def body
if note.present?
note.note
@@ -57,8 +50,4 @@ class Todo < ActiveRecord::Base
target.title
end
end
-
- def target_iid
- target.respond_to?(:iid) ? target.iid : target_id
- end
end