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

Added mysql2 adapter #25

Closed triemstr closed 11 years ago

triemstr commented 13 years ago

Added mysql2 adapter to get geokit-rails to work with the newer mysql2 gem (mysql2 gem link at bottom).

I've been using this for a few months now with Rails 2.3.x and it appears to work the same as the mysql adapter. I've seen a few issues with others not being able to get mysql2 to work (whether that be with Rails 2 or 3) and thought I'd submit a pull request. There are other forks with this same fix, too, so figured it's time to get it in the main fork.

The mysql2.rb adapter file is the same as the mysql and postgresql adapters.

See the mysql2 repository (currently 569 followers) for information on mysql2: https://github.com/brianmario/mysql2

mnoack commented 11 years ago

This was done in 94889f754a5c2363b69b9f79e84316233f9c374e