Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set temporary name for middleware subclass #344

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

janko
Copy link

@janko janko commented Dec 25, 2023

By default it's an anonymous subclass, which doesn't communicate connection to the Roda app in the inspect output. In rodauth-rails, I overrode inspect to provide some context.

Ruby 3.3 added Module#set_temporary_name, which we can use to improve introspection.

By default it's an anonymous subclass, which doesn't communicate
connection to the Roda app in the inspect output. Ruby 3.3 added
Module#set_temporary_name, which we can use to improve introspection.
@jeremyevans
Copy link
Owner

Thanks for the patch!

@jeremyevans jeremyevans merged commit cb65272 into jeremyevans:master Dec 27, 2023
15 of 16 checks passed
@janko janko deleted the set-middleware-name branch December 27, 2023 19:51
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.

None yet

2 participants