update rails dependency for rails 4