fix middleware for AC::Metal on rails 3.2

Fixes #248
Merge pull request #281 from jhawthorn/fix_actioncontroller_metal

fix middleware for AC::Metal on rails 3.2