Somewhat hacky support for Rails 2