-
Notifications
You must be signed in to change notification settings - Fork 13
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
Please don't extend Ruby core objects #4
Comments
👍 |
1 similar comment
👍 |
To give a specific example, I added this gem to a Rails project and simply having it in the
This can be tested as easily as |
👍 , they're not "nice extensions to base classes", I forked a version without these extensions: https://github.com/tam-vo/imgur |
I have the same problem, but i didn't include gem 'imgurapi'. im using ruby 2.3.1 rails 4.2.6. So, how exactly i have to solve this issue? Btw, im newbie in rails. |
I've just spent 5 hours trying to debug why my application suddenly started crashing for no apparent reason until I found out this gem is extending
Array
withto_hash
method. Please don't do this - this can cause serious issues when code expects hash or hash-like object but also supports arrays, especially considering this was not expected from a gem for external API integration.The text was updated successfully, but these errors were encountered: