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?
to your account
NoMethodError: undefined method `to_h' for #<CSV::Row:0x68ab0936>
jruby 9k (7a66d8b)
NoMethodError: undefined method `to_h' for #<CSV::Row:0xb4a2758>
This works on MRI 2.1.0 and possibly older versions as well - it creates a hash with the headers of the CSV as the keys.
The text was updated successfully, but these errors were encountered:
This does not work in MRI 1.9 or 2.0 either, so it appears to be a change in 2.1. It won't be fixed in JRuby 1.7.x, but we will fix it in 9k (which will be 2.2 compatible).
We run a direct copy of csv.rb from MRI, so there's something else at play here.
Sorry, something went wrong.
Enumerable gained to_h in 2.1. Fixing.
No branches or pull requests