Relaxes the dependency on rails to support rails 4.X