dazuma/rgeo — pull request #30 by schleyfox (2012-07-04 02:36:07+00:00)
Title: Fixing GeometryMixin for GeometryCollection

When you attempt to serialize a MultiPolygon to JSON when using rgeo-activerecord, you get (using geojson encoder)

```ruby
[{"type"=>"Polygon", "coordinates"=>[[[-87.69532175763618, 41.83747548889991], ..., [-87.69532175763618, 41.83747548889991]]]}]
```

because Enumerable#as_json is used. This patch causes it to behave correctly:

```ruby
{"type"=>"MultiPolygon", "coordinates"=>[[[[-87.69532175763618, 41.83747548889991], [-87.68227549298774, 41.84131221103992], [-87.68193217023384, 41.85077514212665], [-87.69703837140571, 41.851030877595406], [-87.69532175763618, 41.83747548889991]]]]}
```