Support for Rails 3.x