adding support for Rails 3.2