We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Let's say I do the following
# config/initializers/garner.rb module Garner module Mixins module Rack alias_method :_garner, :garner def garner(&block) response, headers = _garner.key({ foo: "bar" }, &block) end end end end
Now the calling line number will always be config/initializers/garner.rb:9, instead of where the method was originally called from.
Can we be smarter about this?
The text was updated successfully, but these errors were encountered:
Possibly by examining class names on the stack instead of file names?
Sorry, something went wrong.
Is this related to issue #54 ? Is that monkey patch not safe to use in production? It seems to be working fine for me.
@monfresh This is unrelated; the patch from #54 is safe since it patches fetch, not garner.
fetch
garner
No branches or pull requests
Let's say I do the following
Now the calling line number will always be config/initializers/garner.rb:9, instead of where the method was originally called from.
Can we be smarter about this?
The text was updated successfully, but these errors were encountered: