ika 1.0.4 → 1.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/ika/version.rb +1 -1
- data/lib/ika.rb +1 -5
- 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: 3f4813d400b8c938225f19661f979ae8a4b746b7
|
4
|
+
data.tar.gz: d3a2aa8a19cfe0dd63a5b42a878dac87d4e10a99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dceaefcab518648dc5a54ca0516a2e32308dc1ab80e81dbfc7b1c3f763a472dc6cf06010544ab7ac870aad23f31ab8292b314c72b42ff345e5d565d3e9152282
|
7
|
+
data.tar.gz: 3cc60b79cb78c171b83462854ef39273f4fbd81624cf17877a8fa8d496a03456e903b4c1e2952f44abd381702361b19048839f5cf1ceebc7bd36b4ac0da8bdc5
|
data/lib/ika/version.rb
CHANGED
data/lib/ika.rb
CHANGED
@@ -20,9 +20,7 @@ module Ika
|
|
20
20
|
|
21
21
|
ActiveRecord::Base.transaction do
|
22
22
|
if options && options[:sync]
|
23
|
-
|
24
|
-
else
|
25
|
-
remove_target_ids = []
|
23
|
+
destroy_all
|
26
24
|
end
|
27
25
|
objects.each do |object|
|
28
26
|
record_exists = false
|
@@ -61,9 +59,7 @@ module Ika
|
|
61
59
|
else
|
62
60
|
create(object_params)
|
63
61
|
end
|
64
|
-
remove_target_ids -= [object['id'].to_i]
|
65
62
|
end
|
66
|
-
where(id: remove_target_ids).destroy_all
|
67
63
|
end
|
68
64
|
end
|
69
65
|
|