useful_renderers 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/useful_renderers/version.rb +1 -1
- data/lib/useful_renderers.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e31dfc4a87e56c0b8878d7f911fee27ffa669953
|
4
|
+
data.tar.gz: 18d062a32a3b18a2462a12f91956ccb7c46bd71f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 469b6a3e18c6133975500977322e9346d13c5fd6ca7947fffa14c82410055dd5edd7ab2cc6e18a4d7c35ade1e793a0ae3310fdc27cb24574d9e7ba769a9e9bf2
|
7
|
+
data.tar.gz: 44cc1ef8d03beaa7407aebfd013520dde157da2e47e646c46a22f8c5e4c5a038f15d52a609f98aedc353f05fc10dea10d48ad7ca1bc3ab35c41036a4089af280
|
data/lib/useful_renderers.rb
CHANGED
@@ -18,7 +18,7 @@ module UsefulRenderers
|
|
18
18
|
filename = options[:filename] || options[:template]
|
19
19
|
zip.extend UsefulRenderers::ZipRenderable
|
20
20
|
data = zip.respond_to?(:to_zip) ? zip.to_zip(options) : zip
|
21
|
-
send_data data, type:
|
21
|
+
send_data data, type: 'application/zip', disposition: "attachment; filename=#{filename}.zip"
|
22
22
|
end
|
23
23
|
|
24
24
|
end
|