syncable_models 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/syncable_models/importer.rb +1 -1
- data/lib/syncable_models/version.rb +1 -1
- data/spec/dummy/log/test.log +406 -406
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjUzZGRmMTQ5MDNhMTAxZDkwOGY4NDUyN2YwOTIxMmE3NTE5ZmJlZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzQwMTNmZTUzYzBmOThkNzQ4ZDcyMDI3NzZiNWU5MDg3MTk0ZGNlNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDdjMjExYjg5YWJlMGE0NGE5Y2Y0MzVhOWEwYjcyOTkzMzYxZDUyOTZiNmE5
|
10
|
+
YzgxYWJmY2EyYzlmMTM1MjdhMGJiM2ZiZjlmNzlkMzExZThmMDExNWUxNDE5
|
11
|
+
NTM1ODgzMzQzNGI4NDA5MjA2MjNhY2QxNjVkNDQyNDVlZmM1M2E=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTc0N2E3OGQzNjhjN2I0YjZjYWEzMzk0NGQyNWM5ZDUyZmVhZGM5NGU0OWRk
|
14
|
+
MTkyYWNlODU1OGY0OWQyMmYzOGM1Mzg3NzE4ZDA2NTdlNDNmMWExZDBkZThh
|
15
|
+
MGI3ZDg3Y2EzZDY2NDkyYjk1OGVjNDQ3Mzk1MWY1MmQ4OTNlZjM=
|
@@ -84,7 +84,7 @@ module SyncableModels
|
|
84
84
|
klass = model_name.constantize
|
85
85
|
|
86
86
|
objects.each do |o|
|
87
|
-
id = o[params[:
|
87
|
+
id = o[params[:api_id_key].to_s]
|
88
88
|
result = klass.from_import_hash(o)
|
89
89
|
puts "[SyncableModels::Importer] Importing #{model_name} (external_id=#{id}): #{ result ? 'OK' : 'FAIL' }"
|
90
90
|
synced_ids << id if result
|