refile-backgrounder 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/refile/backgrounder/store_worker.rb +2 -0
- data/lib/refile/backgrounder/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: 0e61edebb6d5f161818b268ab683a5fe062c80c2
|
4
|
+
data.tar.gz: 79abff44a89ac5a8559889d5bd90b4d21cf9c7ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c746fcc515bb4e4b56f2683a2838de04382fbf6035564645051bfb58dd92ae05bf919395eb37bd6b81a59d111e5b514d2244d621d1b6fedb0341795984cf0d99
|
7
|
+
data.tar.gz: bb5d545bb9a4d800a5d1ddfbe748914b144ea94de0cfd051450a1625053b785a1b8ebcab7791d0d64dd5b0a5d7cbf2e307e23d27e5dc3e1ad7bbf8e68c80808b
|
@@ -37,6 +37,8 @@ module Refile
|
|
37
37
|
record._skip_refile_backgrounder = true
|
38
38
|
record.send "#{attachment_name}_cache_id=", nil if record.respond_to? "#{attachment_name}_cache_id="
|
39
39
|
record.send "#{attachment_name}_id=", file.id if record.respond_to? "#{attachment_name}_id="
|
40
|
+
record.send "#{attachment_name}_id_will_change!"
|
41
|
+
record.send "#{attachment_name}_cache_id_will_change!"
|
40
42
|
record.save
|
41
43
|
end
|
42
44
|
|