rails 3 compatibility fix