-
Notifications
You must be signed in to change notification settings - Fork 56
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
undefined method `as_json' for Hash #30
Comments
From the top of my head I'd say ActiveSupport core extensions. You can roll your own as_json for Hash, obviously. |
It's just:
ya? Seems like a a good idea to add that to this project in case we're not working with Active*. |
Yup, we could have something like that as a default Hash extension if ActiveSupport (or the method) is not present. |
I've pushed some clean ups and changes. Please provide a use case @parkr , just need a spec to understand this part of the code ;) |
@nofxx I was writing out GeoJSON, like so: https://github.com/parkr/would-patronize-again/blob/master/lib/patronize.rb I got the above error when trying to turn the geographic information into GeoJSON and writing it out to a file. |
Hello @parkr, should be working fine now. (v2.5.1)
|
Irked by this when using GeoRuby standalone to modify GeoJSON files.
Do I need ActiveSupport? ActiveModel? If so, how can I avoid it?
The text was updated successfully, but these errors were encountered: