apneadiving/Google-Maps-for-Rails — pull request #224 by nithinbekal (2012-06-26 10:45:47+00:00)
Title: Fix issue #223: to_gmaps4rails(&blk) doesn't work with Mongoid

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.