From da07d7ddf9f43614d0cf014f216079c95642866b Mon Sep 17 00:00:00 2001 From: yuenmichelle1 Date: Fri, 9 Aug 2024 10:02:27 -0500 Subject: [PATCH] update searches_controller to use permitted params and then call to_h because params no longer inherit from HashWithIndifferentAccess (#356) --- app/controllers/searches_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/searches_controller.rb b/app/controllers/searches_controller.rb index 8bdf33d6..26556487 100644 --- a/app/controllers/searches_controller.rb +++ b/app/controllers/searches_controller.rb @@ -49,7 +49,7 @@ def previous_href end def search_href(opts = { }) - permitted = params.slice :page, :page_size, :section, :query, :types + permitted = permit_params.to_h.slice :page, :page_size, :section, :query, :types query_opts = permitted.merge(opts).collect{ |k, v| "#{ k }=#{ v }" }.join '&' "/searches?#{ query_opts }" end