fix rails 3.0 build.