carrierwave 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of carrierwave might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/carrierwave/mounter.rb +1 -1
- data/lib/carrierwave/orm/activerecord.rb +1 -1
- data/lib/carrierwave/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7d9ca1331d473162430928f5819d657e9c601b5663965a75f37c2eacb5bd344
|
4
|
+
data.tar.gz: a78745cfdebaa9b1d3cf49cfc513ac248d83690a6f1bafd6384dab81acd3e150
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51207e993ab7aaed4e68d338c7fdbfeee7f1334d914a403890c9364ad3d5aeadbd94206cc3b5fbb07bec7d7372abd346239e979a4d6c6f3c5278e92b4a823c94
|
7
|
+
data.tar.gz: fcc86123d64aabeb6de357cf81f632c3343b3951915d21f1b69e04c8bacb2e7e4c14c8efab9e4b0be33fac28efb228a0e7795615d19d913c33806eccb8adaedc
|
data/lib/carrierwave/mounter.rb
CHANGED
@@ -140,7 +140,6 @@ module CarrierWave
|
|
140
140
|
|
141
141
|
def store!
|
142
142
|
uploaders.each(&:store!)
|
143
|
-
@added_uploaders += uploaders.reject(&:staged)
|
144
143
|
end
|
145
144
|
|
146
145
|
def write_identifier
|
@@ -154,6 +153,7 @@ module CarrierWave
|
|
154
153
|
uploader.deduplicate(existing_identifiers)
|
155
154
|
existing_identifiers << uploader.identifier
|
156
155
|
end
|
156
|
+
@added_uploaders += additions
|
157
157
|
|
158
158
|
record.write_uploader(serialization_column, identifier)
|
159
159
|
end
|
@@ -44,9 +44,9 @@ module CarrierWave
|
|
44
44
|
def initialize_dup(other)
|
45
45
|
old_uploaders = _mounter(:"#{column}").uploaders
|
46
46
|
@_mounters[:"#{column}"] = nil
|
47
|
+
super
|
47
48
|
# The attribute needs to be cleared to prevent it from picked up as identifier
|
48
49
|
write_attribute(:"#{column}", nil)
|
49
|
-
super
|
50
50
|
_mounter(:"#{column}").cache(old_uploaders)
|
51
51
|
end
|
52
52
|
|
data/lib/carrierwave/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Nicklas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|