From 3d34bc05122810a1eef5e5bb6650265bd55d75cf Mon Sep 17 00:00:00 2001 From: Jose Farias Date: Mon, 18 Nov 2024 11:59:28 -0600 Subject: [PATCH] ** not required --- app/helpers/filters_helper.rb | 4 ++-- app/views/bubbles/_filters.html.erb | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/helpers/filters_helper.rb b/app/helpers/filters_helper.rb index bc41459e5..13413280b 100644 --- a/app/helpers/filters_helper.rb +++ b/app/helpers/filters_helper.rb @@ -1,6 +1,6 @@ module FiltersHelper - def filter_chip_tag(text, **) - link_to bubbles_path(**), class: "btn txt-small btn--remove" do + def filter_chip_tag(text, params) + link_to bubbles_path(params), class: "btn txt-small btn--remove" do concat tag.span(text) concat image_tag("close.svg", aria: { hidden: true }, size: 24) end diff --git a/app/views/bubbles/_filters.html.erb b/app/views/bubbles/_filters.html.erb index 924ef9ddc..36528da16 100644 --- a/app/views/bubbles/_filters.html.erb +++ b/app/views/bubbles/_filters.html.erb @@ -17,32 +17,32 @@
- <%= filter_chip_tag filter.indexed_by.humanize, **filter.params_without(:indexed_by, filter.indexed_by) unless filter.default_indexed_by? %> + <%= filter_chip_tag filter.indexed_by.humanize, filter.params_without(:indexed_by, filter.indexed_by) unless filter.default_indexed_by? %> <% filter.tags.each do |tag| %> - <%= filter_chip_tag tag.hashtag, **filter.params_without(:tag_ids, tag.id) %> + <%= filter_chip_tag tag.hashtag, filter.params_without(:tag_ids, tag.id) %> <% end %> <% filter.assignees.each do |assignee| %> - <%= filter_chip_tag "for #{assignee.name}", **filter.params_without(:assignee_ids, assignee.id) %> + <%= filter_chip_tag "for #{assignee.name}", filter.params_without(:assignee_ids, assignee.id) %> <% end %> <% if filter.assignments.present? %> - <%= filter_chip_tag filter.assignments.humanize, **filter.params_without(:assignments, filter.assignments) %> + <%= filter_chip_tag filter.assignments.humanize, filter.params_without(:assignments, filter.assignments) %> <% end %> <% filter.assigners.each do |assigner| %> - <%= filter_chip_tag "by #{assigner.name}", **filter.params_without(:assigner_ids, assigner.id) %> + <%= filter_chip_tag "by #{assigner.name}", filter.params_without(:assigner_ids, assigner.id) %> <% end %> <% if filter.buckets.many? %> <% filter.buckets.each do |bucket| %> - <%= filter_chip_tag "in #{bucket.name}", **filter.params_without(:bucket_ids, bucket.id) %> + <%= filter_chip_tag "in #{bucket.name}", filter.params_without(:bucket_ids, bucket.id) %> <% end %> <% end %> <% filter.terms.each do |term| %> - <%= filter_chip_tag %Q("#{term}"), **filter.params_without(:terms, term) %> + <%= filter_chip_tag %Q("#{term}"), filter.params_without(:terms, term) %> <% end %>