nofxx/postgis_adapter — Issue #25: incompatibility with Rails 3.1's prepared statements
Author: andyvb
Created: 2011-12-08 19:29:09+00:00
State: open

This thread has more info on the issue - http://groups.google.com/group/rubyonrails-core/browse_thread/thread/2aa01b3ccebbe6f1

This fork has a hack / fix but I wouldn't say it's the cleanest - https://github.com/gina-alaska/postgis_adapter/commit/5db2f4eef36857ddafff4fc81d54d00b851e5cf5

To repo create a record with a geometry column:
```
m = MyModel.new
m.my_geometry = Point.from_x_y(10, 20)
m.save!
ActiveRecord::StatementInvalid: PGError: ERROR: parse error - invalid geometry
```