active_touch 5.0.0 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_touch/define_touch.rb +3 -3
- data/lib/active_touch/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: 337e4407b14159d592ab9de1e080728fb12dc345
|
4
|
+
data.tar.gz: 1b48b812594026fa19a585daccd9bc8ada94d913
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac7266a62ae9df9cf9672b63b8e1209c20f70d7e1234b8fa1faf554b38bafb81ca0e44f99e63eb4870e5c66d0b7d02eef7a0f9f8d7a1c8989044360ac8176631
|
7
|
+
data.tar.gz: bd9cff816f573bf623ad588457432b62487d47c251030f4230e4f03c1f7db756f99e29e099cb37f87179e0ba969f88300db84ac8cb785430d69c7b9332ac7c2a
|
@@ -58,7 +58,7 @@ module ActiveTouch
|
|
58
58
|
|
59
59
|
if watched_changes.any? && options[:if].call(self) && !options[:unless].call(self)
|
60
60
|
Rails.logger.debug "Touch After Commit: #{self.class}(#{self.id}) => #{association} due to changes in #{watched_changes}"
|
61
|
-
|
61
|
+
job_options = {
|
62
62
|
after_touch: options[:after_touch].to_s,
|
63
63
|
is_destroy: false,
|
64
64
|
is_touched: options[:touch_in_transaction],
|
@@ -66,9 +66,9 @@ module ActiveTouch
|
|
66
66
|
}
|
67
67
|
|
68
68
|
if options[:async]
|
69
|
-
TouchJob.set(queue: ActiveTouch.configuration.queue).perform_later(self, association.to_s,
|
69
|
+
TouchJob.set(queue: ActiveTouch.configuration.queue).perform_later(self, association.to_s, job_options)
|
70
70
|
else
|
71
|
-
TouchJob.perform_now(self, association.to_s,
|
71
|
+
TouchJob.perform_now(self, association.to_s, job_options)
|
72
72
|
end
|
73
73
|
|
74
74
|
end
|
data/lib/active_touch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_touch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Pheasey
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|