Skip to content

Commit

Permalink
Set freeze flag to false (#737)
Browse files Browse the repository at this point in the history
Co-authored-by: Pranav Babu <[email protected]>
  • Loading branch information
pranavbabu and Pranav Babu authored Sep 9, 2024
1 parent 0a72a0a commit 658671a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gem/lib/pagy/url_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module UrlHelpers
# For non-rack environments you can use the standalone extra
def pagy_url_for(pagy, page, absolute: false, fragment: nil, **_)
vars = pagy.vars
query_params = request.GET.clone
query_params = request.GET.clone(freeze: false)
query_params.merge!(vars[:params].transform_keys(&:to_s)) if vars[:params].is_a?(Hash)
pagy_set_query_params(page, vars, query_params)
query_params = vars[:params].(query_params) if vars[:params].is_a?(Proc)
Expand Down

0 comments on commit 658671a

Please sign in to comment.