mongoid_spacial icon indicating copy to clipboard operation
mongoid_spacial copied to clipboard

Mongoid 3.0 support?

Open mattiassvedhem opened this issue 12 years ago • 3 comments

mattiassvedhem avatar Jun 17 '12 14:06 mattiassvedhem

I think #27 answers to your question

tagliala avatar Jun 29 '12 11:06 tagliala

Hi @tagliala, thanks. Anyone interested in doing a rerelease and maintaining it?

mattiassvedhem avatar Jun 29 '12 11:06 mattiassvedhem

Hi

There are forks of this gem updated for mongoid 3, the most recent is: https://github.com/kristianmandrup/mongoid_geospatial

Migration is not so painful, it will require half an hour, but...

...Unfortunately someone changed the API (I suppose in the previous fork, nofxx/mongoid_geospatial), removing the distance_from method (still documented, argh!). I did it a working patch in my project but it needs tests and specs too.

Maybe other methods were removed too, but I don't know.

I will use mongoid 2 for a while and see what happens

tagliala avatar Jun 29 '12 12:06 tagliala