Fixed exception when loading Rails on 4.0.0.beta1; I've only tested the ActiveRecord adapter as I don't use MongoDB.