Relax dependencies for rails 4