summaryrefslogtreecommitdiff
path: root/app/models/todo.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/todo.rb')
-rw-r--r--app/models/todo.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/todo.rb b/app/models/todo.rb
index 2792fa9b9a8..42faecdf7f2 100644
--- a/app/models/todo.rb
+++ b/app/models/todo.rb
@@ -34,6 +34,13 @@ class Todo < ActiveRecord::Base
action == BUILD_FAILED
end
+ def action_name
+ case action
+ when Todo::ASSIGNED then 'assigned you'
+ when Todo::MENTIONED then 'mentioned you on'
+ end
+ end
+
def body
if note.present?
note.note