removed rails 3 dependency