Rails 3.2 compatability

@jimneath patched this gem to work with Rails 3.2, but it doesn't look like he had his change pulled to the base repo. I'm hoping to have this done so a working gem can be made available from rubygems.org. I confirmed this change works with Rails 3.2.