carrierwave-base64 2.1 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/carrierwave/base64/adapter.rb +1 -3
- data/lib/carrierwave/base64/version.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: d032e99ce5a7ab784425d490fb650bc02a8e3326
|
4
|
+
data.tar.gz: 8ae1855f19ba0ed58439c29676d60bf019f56e38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 631c8be3c99323a21f79b4ba4eb1b800b991a34873b579dd061066ef18dde3a1370f302a6775c107c933e6eb8a503b20694616d75bdd8da28860055bb6fe1ee4
|
7
|
+
data.tar.gz: d15751f539aa4310024de40c5534802cf36b66a4af4866a911100d71c3bab2a43a08a2a84f84a5515e9a502a8adaeb69ef20faee3738e663f1b074bf4df79ef9
|
@@ -5,9 +5,7 @@ module Carrierwave
|
|
5
5
|
mount_uploader attribute, uploader_class, options
|
6
6
|
|
7
7
|
define_method "#{attribute}=" do |data|
|
8
|
-
|
9
|
-
send "#{attribute}_will_change!"
|
10
|
-
end
|
8
|
+
send "#{attribute}_will_change!" if data.present?
|
11
9
|
|
12
10
|
if data.present? && data.is_a?(String) && data.strip.start_with?("data")
|
13
11
|
super(Carrierwave::Base64::Base64StringIO.new(data.strip))
|