From 352f98d0843818eef7397c4fa4edf6b4e707550e Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Tue, 28 Feb 2017 12:08:06 -0500 Subject: [PATCH] use named param in tag_topic_by_names --- lib/discourse_tagging.rb | 2 +- lib/topics_bulk_action.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/discourse_tagging.rb b/lib/discourse_tagging.rb index d595ac2a86c..4d15f60612c 100644 --- a/lib/discourse_tagging.rb +++ b/lib/discourse_tagging.rb @@ -4,7 +4,7 @@ module DiscourseTagging TAGS_FILTER_REGEXP = /[\/\?#\[\]@!\$&'\(\)\*\+,;=\.%\\`^\s|\{\}"<>]+/ # /?#[]@!$&'()*+,;=.%\`^|{}"<> - def self.tag_topic_by_names(topic, guardian, tag_names_arg, append=false) + def self.tag_topic_by_names(topic, guardian, tag_names_arg, append: false) if SiteSetting.tagging_enabled tag_names = DiscourseTagging.tags_for_saving(tag_names_arg, guardian) || [] diff --git a/lib/topics_bulk_action.rb b/lib/topics_bulk_action.rb index 4df73ff29c3..aa7d3acffb0 100644 --- a/lib/topics_bulk_action.rb +++ b/lib/topics_bulk_action.rb @@ -153,7 +153,7 @@ class TopicsBulkAction topics.each do |t| if guardian.can_edit?(t) if tags.present? - DiscourseTagging.tag_topic_by_names(t, guardian, tags, append=true) + DiscourseTagging.tag_topic_by_names(t, guardian, tags, append: true) end @changed_ids << t.id end