apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Fix issue #223: to_gmaps4rails(&blk) doesn't work with Mongoid #224

Closed nithinbekal closed 12 years ago

nithinbekal commented 12 years ago

Since to_gmaps4rails method was defined on Array and not Enumerable, this method could not be used directly with Mongoid. This has been changed so that to_gmaps4rails is now defined on Enumerable, which is included in both Array and Mongoid::Criteria.

The specs have also been updated to use FactoryGirl.build(..) instead of Factory.build(...), which is now deprecated.

apneadiving commented 12 years ago

Thanks!