Rails 2/3 compat