alexreisner/geocoder — pull request #317 by Gambo (2012-10-17 10:28:33+00:00)
Title: Support for Mongoid ~> 2.0.0

Mongoid v2 doesnt have ::Mongoid::VERSION defined, so that Geocoder cannot initialize.

Before trying to read ::Mongoid::VERSION it checks if it is defined.

It does fall back to Mongoid version < 3 in this if condition