remove rails 3 dependency