rails 3.2 fixes
Merge pull request #13 from ncri/master

Made this work with rails 3.2