geokit / geokit-rails

Official Geokit plugin for Rails/ActiveRecord. Provides location-based goodness for your Rails app. Requires the Geokit gem.
MIT License
1.57k stars 245 forks source link

fix-Mysql2AdapterUndefinedMethodLoaded #90

Closed IgorMiller closed 8 years ago

IgorMiller commented 8 years ago

Mysql2 was present in Adapters.constants as a Module, and require was never called, resulting in Undefined method exception. Make sure the require is called if the const_get returns a Module and not a Class.

Fix to the issue: https://github.com/geokit/geokit-rails/issues/89

Do you think this is a good fix? Thanks.

mnoack commented 8 years ago

@IgorMiller Sorry for not getting back to your PR, now merged