-
Notifications
You must be signed in to change notification settings - Fork 375
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
359: Add block back into render call #360
Conversation
Interesting, and also a bit surprising this wasn't being passed. Do you have an example of something passing a block to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we also aren't passing blocks for other render functions.
Could you add the same to https://github.com/wishabi/dd-trace-rb/blob/b3f848044035fd330fc43fcee80200c633c596c4/lib/ddtrace/contrib/rails/core_extensions.rb#L98?
@delner For an example, here's the way it looks in our code:
This is definitely a rather obscure way of using |
Cool, the context there is helpful. But I think the point of adding block to the partial renderer still applies, since the PartialRenderer does actually take a block for |
@delner yep. :) If you follow the code, here's what's happening:
The patcher patches the Just took a closer look - so the patcher does patch the |
Oh, whoops, you're right: We should probably remove that extraneous |
No description provided.