Restore compatibility with Rails 2.x