Fixing registered downloads for rails 4.1