Updated to permit Rails 4 dependencies.