Change Rails dependency to 4