refile-backgrounder 0.0.5 → 0.0.6
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 +3 -3
- data/lib/refile/backgrounder/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6a1ab6f669c81104c12eb82a2f2b55fd001bd31
|
4
|
+
data.tar.gz: 684e1ae7c93b8218d8dae14ba4986b26b5cfdb49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95d2e039377871dd21a72b50bf72039c830f17b72ad4c9d2dccc290678c0cbee2649cb0fedcd32287cc57dc10a30a9991d7edc3ef5cf8fb07286cdf533aa9fc3
|
7
|
+
data.tar.gz: 4d1bd7e87add1d4c58d29bdd50f0784db5dd41c7a359b709d7e5b5dbae50d67612cd2f80ddc155813f7f30653f99c49ca94bbae2f8e4a45603f7dda4ec4d34f3
|
@@ -36,9 +36,9 @@ module Refile
|
|
36
36
|
def update_record_attachment(file)
|
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
|
-
record.send "#{attachment_name}_id=", file.id
|
40
|
-
record.send "#{attachment_name}_id_will_change!"
|
41
|
-
record.send "#{attachment_name}_cache_id_will_change!"
|
39
|
+
record.send "#{attachment_name}_id=", file.id if record.respond_to? "#{attachment_name}_id="
|
40
|
+
record.send "#{attachment_name}_id_will_change!" if record.respond_to? "#{attachment_name}_id_will_change!"
|
41
|
+
record.send "#{attachment_name}_cache_id_will_change!" if record.respond_to? "#{attachment_name}_cache_id_will_change!"
|
42
42
|
record.save
|
43
43
|
end
|
44
44
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refile-backgrounder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Logan Serman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|