summaryrefslogtreecommitdiff
path: root/app/models/board.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/board.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/board.rb')
-rw-r--r--app/models/board.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/board.rb b/app/models/board.rb
index 50b6ca9b70f..b5d07f1b282 100644
--- a/app/models/board.rb
+++ b/app/models/board.rb
@@ -19,6 +19,7 @@ class Board < ApplicationRecord
def parent
@parent ||= group || project
end
+ alias_method :resource_parent, :parent
def group_board?
group_id.present?