This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 99
Geom field not converted to hex_ewkb when using Model.create in Rails 3.1.0 #26
Comments
Still broken in rc5. I can't work out why it's broken either, or I'd attempt to fix it myself. |
Take a look at my fork - I have a working fix, but still an outstanding issue or two. Most notably, the schema dumper doesn't seem to be picking up its extensions, when run from within my rails project. The schema dumper specs pass. Also note I've only been testing on postgres. And do let me know how it works for you, I'll be curious to hear. |
@Empact Thank You for fixing this issue. I've been pulling my hair out all day! |
@Empact Life saver! Thank you so much. This fix should be merged. |
Your fork totally fixed it for me. Thanks! |
Also fixed for me, thanks. Maybe turn it into a pull request? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Creating a new record using
Doesn't work, but this does:
With some debugging it appears that the PostgreSQLAdapter#quote method inside lib/spatial_adapter/postgresql.rb wasn't hit when using 'create', but was when updating. This was true even for non-geom fields.
Here is the output using the example provided in the README:
The text was updated successfully, but these errors were encountered: