Skip to content

Commit 658671a

Browse files
pranavbabuPranav Babu
andauthored
Set freeze flag to false (#737)
Co-authored-by: Pranav Babu <babu@maindeck.io>
1 parent 0a72a0a commit 658671a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gem/lib/pagy/url_helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module UrlHelpers
88
# For non-rack environments you can use the standalone extra
99
def pagy_url_for(pagy, page, absolute: false, fragment: nil, **_)
1010
vars = pagy.vars
11-
query_params = request.GET.clone
11+
query_params = request.GET.clone(freeze: false)
1212
query_params.merge!(vars[:params].transform_keys(&:to_s)) if vars[:params].is_a?(Hash)
1313
pagy_set_query_params(page, vars, query_params)
1414
query_params = vars[:params].(query_params) if vars[:params].is_a?(Proc)

0 commit comments

Comments
 (0)