update dependency to rails 4