Relax dependencies to support Rails 4.