Fix undefined method in rails < 3.1

`ActiveRecord::Base.connection_config` doesn't exist prior to Rails
3.1. Fixes #81