Always use symbols for type on LabelsHelper#link_to_label

This commit is contained in:
Douglas Barbosa Alexandre 2016-10-11 14:18:21 -03:00
parent 2deef25eb0
commit 73bfc15cd4
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ module LabelsHelper
end
end
def label_filter_path(subject, label, type: issue)
def label_filter_path(subject, label, type: :issue)
case subject
when Group
send("#{type.to_s.pluralize}_group_path",

View File

@ -62,7 +62,7 @@
- if merge_request.labels.any?
 
- merge_request.labels.each do |label|
= link_to_label(label, subject: merge_request.project, type: 'merge_request')
= link_to_label(label, subject: merge_request.project, type: :merge_request)
- if merge_request.tasks?
 
%span.task-status