Backward compatibility with rails pre 3.0.3.