FoundChris.com - Blog of Chris Johnson

Rails plugin mysql_replication_adapter for Rails 2.2+

February 12th 2009

Just a quick post to make available to the internet that I’ve updated the mysql_replication_adapter gem/plugin to be compatible with Rails 2.2+.

The original mysql_replication_adapter was first made available by RapLeaf.  It was a gem that was released in mid-2007 and hosted on rubyforge.  However, development stalled and when Rails when to version 2, the gem was no longer compatible.  Fortunately, in mid-2008 rubyforge user “ckiernan” patched the gem and converted it into plugin, making it compatible with Rails 2.  The patch was never committed to the main repository, so the plugin was solely available on this rubyforge tracker page.

However, the plugin again became useless with the release of Rails 2.2.  The call to “require_mysql” was bombing as that method was apparently removed in Rails 2.2.  And so I fixed that and put it on github for all of the Rails world to enjoy.  “Git” it here:

http://github.com/findchris/mysql_replication_adapter/tree/master

Hope someone benefits from this.