alias of #method to #__method__ overwrites Ruby internal method #78

ntalbott opened this Issue Apr 25, 2012 · 3 comments


None yet
2 participants

Object#__method__ is actually a Ruby defined method that returns the name of the method that it is called from. The alias at overwrites it, causing any code that expects the Ruby defined version to blow up with an ArgumentError (since Object#method takes an argument, and Object#__method__ doesn't). Fix should be as simple as picking an alias that isn't __method__.

Let me know if you need any more details; for an example of breakage, see!/Shopify/active_merchant/jobs/1163558.


floehopper commented Apr 25, 2012

Thanks for reporting this. I'll have a go at making the change now.


floehopper commented Apr 25, 2012

New version 0.11.3 released including fix. Let me know if it doesn't solve the problem.

Works like a champ - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment