diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-02-20 12:01:50 -0800 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-02-20 12:01:55 -0800 |
commit | 42cbcb23478f7b07c0c49e0020a8d3c834322e87 (patch) | |
tree | 58abbccf9dc9d40c147658ea293c6f3aed4a82e7 /app/models/todo.rb | |
parent | d53ae7f14d7c24ee590ba57632d267ec01706aa4 (diff) | |
download | gitlab-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.rb | 11 |
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 |