summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-25 08:37:49 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-03 10:41:11 +0100
commit65ba4da925361e69f59fc87eaf908e933079f2c3 (patch)
treeb5c6c05c6b8562bd2c7aacdf08b1daf26687e7b6 /app/services
parent1fa7671f44291f78131c0fa31f6d1ffcb3ff6bbc (diff)
downloadgitlab-ce-65ba4da925361e69f59fc87eaf908e933079f2c3.tar.gz
Add support for keyword arguments in label reference method
Diffstat (limited to 'app/services')
-rw-r--r--app/services/system_note_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/system_note_service.rb b/app/services/system_note_service.rb
index edced010811..58a861ee08e 100644
--- a/app/services/system_note_service.rb
+++ b/app/services/system_note_service.rb
@@ -66,7 +66,7 @@ class SystemNoteService
def self.change_label(noteable, project, author, added_labels, removed_labels)
labels_count = added_labels.count + removed_labels.count
- references = ->(label) { label.to_reference(:id) }
+ references = ->(label) { label.to_reference(format: :id) }
added_labels = added_labels.map(&references).join(' ')
removed_labels = removed_labels.map(&references).join(' ')