Add in support for Rails < 3.0