Remove rails 3 dependency