Relax dependencies to support rails 4.1