diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2019-09-04 00:29:55 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-09-04 00:29:55 +0300 |
commit | 243bd0202fe3373a997f5ed37c027ab8cfdfcb35 (patch) | |
tree | b57dd84260e2ea26f3c39aaf8310f3e2625df9f7 /app/models/concerns/issuable.rb | |
parent | 7bf4ef502612c523dc993e35e1ed36fa2ea7364f (diff) |
Create an event on epic actions
Creates new event when an epic is created, closed, reopened or
commented.
Diffstat (limited to 'app/models/concerns/issuable.rb')
-rw-r--r-- | app/models/concerns/issuable.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/concerns/issuable.rb b/app/models/concerns/issuable.rb index eefe9f00836..a998d9b7e1b 100644 --- a/app/models/concerns/issuable.rb +++ b/app/models/concerns/issuable.rb @@ -277,6 +277,10 @@ module Issuable end end + def resource_parent + project + end + def milestone_available? project_id == milestone&.project_id || project.ancestors_upto.compact.include?(milestone&.group) end |