Skip to content

Commit

Permalink
take params from config to override to nil, to avoid unpermitted params.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrochkind committed Dec 2, 2024
1 parent c260dc1 commit 5846791
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def label
#
# https://github.com/projectblacklight/blacklight_range_limit/issues/296
def href(path_options = {})
super(path_options.merge(range_end: nil, range_field: nil, range_start: nil))
override_to_nil = BlacklightRangeLimit::ControllerOverride::RANGE_LIMIT_FIELDS.collect { |f| [f, nil] }.to_h
super(path_options.merge(override_to_nil))
end

private
Expand Down

0 comments on commit 5846791

Please sign in to comment.