From cbb20ecc6464059f894a0c09fef3822c8ad84bda Mon Sep 17 00:00:00 2001 From: Jeffrey Hardy Date: Fri, 4 Oct 2024 15:55:54 -0400 Subject: [PATCH] Rename the search param for clarity --- app/controllers/bubbles_controller.rb | 4 ++-- app/helpers/bubbles_helper.rb | 4 ++++ app/views/bubbles/_filters.html.erb | 10 ++++------ app/views/bubbles/index.html.erb | 4 ++-- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/app/controllers/bubbles_controller.rb b/app/controllers/bubbles_controller.rb index 711b52a51..30b6344df 100644 --- a/app/controllers/bubbles_controller.rb +++ b/app/controllers/bubbles_controller.rb @@ -6,8 +6,8 @@ class BubblesController < ApplicationController def index @bubbles = @bucket.bubbles.not_popped - if params[:filter].present? - @bubbles = @bubbles.mentioning(params[:filter]) + if params[:term].present? + @bubbles = @bubbles.mentioning(params[:term]) end if params[:tag_id] diff --git a/app/helpers/bubbles_helper.rb b/app/helpers/bubbles_helper.rb index c57951963..380916c03 100644 --- a/app/helpers/bubbles_helper.rb +++ b/app/helpers/bubbles_helper.rb @@ -20,4 +20,8 @@ module BubblesHelper "--bubble-size: var(--bubble-size-#{rank});" end + + def bubble_filter_params + params.permit(:term, :tag_id, :assignee_id) + end end diff --git a/app/views/bubbles/_filters.html.erb b/app/views/bubbles/_filters.html.erb index d3b117468..58cbc3936 100644 --- a/app/views/bubbles/_filters.html.erb +++ b/app/views/bubbles/_filters.html.erb @@ -1,5 +1,3 @@ -<% filter_params = params.permit(:filter, :tag_id, :assignee_id) %> -