summaryrefslogtreecommitdiff
path: root/app/models/todo.rb
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2019-09-03 21:29:55 +0000
committerThong Kuah <tkuah@gitlab.com>2019-09-03 21:29:55 +0000
commit243bd0202fe3373a997f5ed37c027ab8cfdfcb35 (patch)
treeb57dd84260e2ea26f3c39aaf8310f3e2625df9f7 /app/models/todo.rb
parent7bf4ef502612c523dc993e35e1ed36fa2ea7364f (diff)
downloadgitlab-ce-243bd0202fe3373a997f5ed37c027ab8cfdfcb35.tar.gz
Create an event on epic actions
Creates new event when an epic is created, closed, reopened or commented.
Diffstat (limited to 'app/models/todo.rb')
-rw-r--r--app/models/todo.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/todo.rb b/app/models/todo.rb
index 1ec04189482..f7f30aed832 100644
--- a/app/models/todo.rb
+++ b/app/models/todo.rb
@@ -146,6 +146,7 @@ class Todo < ApplicationRecord
def parent
project
end
+ alias_method :resource_parent, :parent
def unmergeable?
action == UNMERGEABLE