Skip to content

Better proc/lambda route representation in bin/rails routes#43787

Merged
rafaelfranca merged 1 commit intorails:mainfrom
skyksandr:better-proc-route-inspection
Dec 7, 2021
Merged

Better proc/lambda route representation in bin/rails routes#43787
rafaelfranca merged 1 commit intorails:mainfrom
skyksandr:better-proc-route-inspection

Conversation

@skyksandr
Copy link
Copy Markdown
Contributor

Summary

Change proc defined route representation from:

<Proc:RandomObjectId "/full/path/to/config/routes">

To:

"Inline handler (Proc/Lambda)"

We are using result of bin/rails routes inspection in CI automations. We recently added proc defined /health endpoint and found out that the result of bin/rails routes now changes on every run.
Looking deeper I confirmed that this is a result of .inspect call and added a condition for Procs

Other Information

Feedback is greatly appreciated.

Before:
<Proc:RandomObjectId "/full/path/to/config/routes">
After:
"Inline handler (Proc/Lambda)"
@rails-bot rails-bot bot added the actionpack label Dec 7, 2021
@skyksandr skyksandr changed the title Better proc/lambda route representation in bin/rails routes Better proc/lambda route representation in bin/rails routes Dec 7, 2021
@rafaelfranca rafaelfranca merged commit ac90d5a into rails:main Dec 7, 2021
@skyksandr skyksandr deleted the better-proc-route-inspection branch December 7, 2021 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants