mirror of
https://github.com/github/rails.git
synced 2026-01-10 15:18:13 -05:00
mtodd-patch-1
Yeah, this is ghetto, but it makes github/github#15020 simpler.
Right now, we have to store the `request` object in `Thread.current` for constraints-based routing if we want access to the request when running our constraint match.
See github/github#14468 for additional background, where the `request` was removed from the `env` because it was causing unexpected needles for all 404s.
NOTE: This `env` is not the same as `request.env`, it's a subset produced by [`extract_request_environment`](685cb901fc/actionpack/lib/action_controller/routing/route_set.rb (L442)).
cc @github/discussions @github/rails
Description
No description provided
Languages
Ruby
97.9%
CSS
1.5%
HTML
0.5%