fixed dependencies for rails 4