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/milestone.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/milestone.rb')
-rw-r--r-- | app/models/milestone.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/milestone.rb b/app/models/milestone.rb index 101e963ea29..cb87b46a31d 100644 --- a/app/models/milestone.rb +++ b/app/models/milestone.rb @@ -260,6 +260,7 @@ class Milestone < ApplicationRecord def parent group || project end + alias_method :resource_parent, :parent def group_milestone? group_id.present? |