Change dependency to rails 3