effective_assets 1.12.1 → 1.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/asset_replacer.rb +2 -1
- data/lib/effective_assets/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fc2ceb913a834e2d5a6c163e8aeccac4fd57f116239b59f1956c51c3a90053a
|
4
|
+
data.tar.gz: 6f24ae8f628864f2da0ab6ef66fb3cd9737c99fc3769c11c02e3aa9b7977a1bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fc658672d3da2b57f573d3c3558d68028df4924e8982c8ac068d5dabddefaa5cd87942afeffbc95a2b7930310b23e8adac8eb21226cb29cba60b7fdafb008cf
|
7
|
+
data.tar.gz: b9690fd04a64c874d37d34453776ef065293461eb67b01ad1fa4019275151ab73c15973376425e36d370df898d21cea2d8e348fad7289524e0715bc520337d54
|
@@ -4,6 +4,7 @@
|
|
4
4
|
# 2. Remove the acts_as_asset_box
|
5
5
|
|
6
6
|
require 'timeout'
|
7
|
+
require 'cgi'
|
7
8
|
|
8
9
|
module Effective
|
9
10
|
class AssetReplacer
|
@@ -69,7 +70,7 @@ module Effective
|
|
69
70
|
Timeout.timeout(TIMEOUT) do
|
70
71
|
attachable.send(box).attach(
|
71
72
|
io: URI.open(asset.url),
|
72
|
-
filename: asset.file_name,
|
73
|
+
filename: CGI.unescape(asset.file_name.to_s),
|
73
74
|
content_type: asset.content_type.presence,
|
74
75
|
identify: (asset.content_type.blank?)
|
75
76
|
)
|