Relax dependency for rails 4