Better Rails 4 support

This is similar to how connection_specification.rb was fixed in f455443
Merge pull request #14 from bquorning/more-rails-4-support

More Rails 4 support