Converted the plugin into a gem and made it compatible with the latest version of Rails