speaky 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/speaky/concern.rb +2 -2
- data/lib/speaky/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06f3d5c76d75de0c05238c26dfc83d3707d7cc5448f83ef474249b0bd5df185b
|
4
|
+
data.tar.gz: 64cac48f6f8fcdd88512940ae3888d736f7b52890dd6cf92a7f91f6716ffee48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 104878c920e7de1c268e727b2ff774f8a6f8c0e240be6cc5b252ee054beeb3f9ae37b36bf7f57ae5491e8d26b3af670b229304885d21f7b0bd63c3686eea5cf4
|
7
|
+
data.tar.gz: 20a27ca58c2f0184d153e5652e9a71058335a9ba1ebd1fd9281f542d95df1c38a8ac5345976f93dd9a824f89b58bdec35440eb441dbf7b443b0a7347db1ad142
|
data/lib/speaky/concern.rb
CHANGED
@@ -13,7 +13,7 @@ module Speaky
|
|
13
13
|
|
14
14
|
def save_for_speaky
|
15
15
|
begin
|
16
|
-
Speaky.vectorstore.add(self.id, self.as_speaky)
|
16
|
+
Speaky.vectorstore.add("#{self.class.name}_#{self.id}", self.as_speaky)
|
17
17
|
rescue StandardError => e
|
18
18
|
Rails.logger.error(e)
|
19
19
|
errors.add(:base, 'Failed to create for speaky')
|
@@ -23,7 +23,7 @@ module Speaky
|
|
23
23
|
|
24
24
|
def destroy_for_speaky
|
25
25
|
begin
|
26
|
-
Speaky.vectorstore.remove(self.id)
|
26
|
+
Speaky.vectorstore.remove("#{self.class.name}_#{self.id}")
|
27
27
|
rescue StandardError => e
|
28
28
|
Rails.logger.error(e)
|
29
29
|
errors.add(:base, 'Failed to destroy for speaky')
|
data/lib/speaky/version.rb
CHANGED