Make hack for file streaming work with rails 3.1.0