Skip to content

Remove reference to deprecated constant ActionDispatch::Request::PAIR_RE - #13

Open
pconnelly-nuance wants to merge 11 commits into
24-18-0from
pc-replace-pair-re
Open

Remove reference to deprecated constant ActionDispatch::Request::PAIR_RE#13
pconnelly-nuance wants to merge 11 commits into
24-18-0from
pc-replace-pair-re

Conversation

@pconnelly-nuance

Copy link
Copy Markdown

Refactor QueryStringFilter#filter method to avoid using ActionDispatch::Request::PAIR_RE. This code was modeled after code in the Rails 7.0.8.5 update

@pconnelly-nuance
pconnelly-nuance changed the base branch from master to 24-18-0 November 5, 2024 17:29
def filtered
@filtered ||= qs.gsub(::ActionDispatch::Request::PAIR_RE) do |_|
params_filter.filter(::Regexp.last_match(1) => ::Regexp.last_match(2)).first.join('=')
@filtered ||= begin

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious if you were going to try a different version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants