diff options
author | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-08-24 19:41:44 +0300 |
---|---|---|
committer | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-08-29 11:14:41 +0300 |
commit | fab7fdcf2f8b040c345d1cb0b05acd053c9af963 (patch) | |
tree | fee121a044e9032b918686b71246ba55875e8050 /app/services | |
parent | ac3e5a58549c3f88659cedb47df68e5e719d68f1 (diff) | |
download | gitlab-ce-fab7fdcf2f8b040c345d1cb0b05acd053c9af963.tar.gz |
replace `is_group_milestone?` with `group_milestone?`
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/system_note_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/system_note_service.rb b/app/services/system_note_service.rb index 1763f64a4e4..1f66a2668f9 100644 --- a/app/services/system_note_service.rb +++ b/app/services/system_note_service.rb @@ -142,7 +142,7 @@ module SystemNoteService # # Returns the created Note object def change_milestone(noteable, project, author, milestone) - format = milestone&.is_group_milestone? ? :name : :iid + format = milestone&.group_milestone? ? :name : :iid body = milestone.nil? ? 'removed milestone' : "changed milestone to #{milestone.to_reference(project, format: format)}" create_note(NoteSummary.new(noteable, project, author, body, action: 'milestone')) |