An attempt to fix rails 3.0 support