Compatibility with Rails 3.2