Keep compatibility with Rails 2 and 3...