More Rails 4 support

This is similar to how connection_specification.rb was fixed in f455443

Without this change, I could not start a Rails 4 console.

cc/ @osheroff, @lukkry, @grosser