Revise adapter to work with Rails 2.3 with Matt Esterly's changes