Added support for Rails 3.2 and Greater