Works in rails 3.2 as well
Merge pull request #2 from sj26/rails-3.2

Rails 3.2 Support