linked_rails 0.0.4.pre.gc3dfc6914 → 0.0.4.pre.gd8464437f
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0469495fc05ef96aed75db4a9a3f1cf7e1ed7dfed36760c6960d370369515c1
|
4
|
+
data.tar.gz: f3ed8428a3ca3421c43cb6e702a3353eedfb5bcc09db67a85670ebf37cbd8aaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52a4634ca24036a3281671d4829ba527ccc5790c6e4c6d87bfc2b3208f88c3d00ca8db0370b4aeffc8d77da8629058999a6677923a002c5f5680a30d4cd89f1e
|
7
|
+
data.tar.gz: 4d48f8396c5a5209fbf9373362cca8efc693493ec650034359119d9a39809a9ba2511af80aa8820c3439aaf5156f143608e4361b3def860cc33119db180cb93c
|
@@ -17,8 +17,6 @@ module LinkedRails
|
|
17
17
|
true
|
18
18
|
end
|
19
19
|
|
20
|
-
private
|
21
|
-
|
22
20
|
def publish_create
|
23
21
|
publish_message('io.ontola.transactions.Created')
|
24
22
|
end
|
@@ -31,14 +29,14 @@ module LinkedRails
|
|
31
29
|
publish_message('io.ontola.transactions.Deleted')
|
32
30
|
end
|
33
31
|
|
32
|
+
private
|
33
|
+
|
34
34
|
def publish_message(type)
|
35
35
|
LinkedRails::InvalidationStreamWorker.perform_now(type, iri.to_s, self.class.iri.to_s)
|
36
36
|
rescue StandardError
|
37
37
|
LinkedRails::InvalidationStreamWorker.perform_later(type, iri.to_s, self.class.iri.to_s)
|
38
38
|
end
|
39
39
|
|
40
|
-
private
|
41
|
-
|
42
40
|
def should_publish_changes
|
43
41
|
cacheable? && !Rails.env.test?
|
44
42
|
end
|
data/lib/linked_rails/storage.rb
CHANGED