Changed to depend on rails 4