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.
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.