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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODRjOTRkNzUyZDg0YWU3OTVhYmQ2NGE1MGVkNWRmNzRjYjljMjFmMw==
4
+ YjUzZGRmMTQ5MDNhMTAxZDkwOGY4NDUyN2YwOTIxMmE3NTE5ZmJlZQ==
5
5
  data.tar.gz: !binary |-
6
- MzdlMmIyNmI3ZmJkZWYzNzY0NGZlN2Y0ZWYwNzQ5N2RhZDUzMzZjYw==
6
+ MzQwMTNmZTUzYzBmOThkNzQ4ZDcyMDI3NzZiNWU5MDg3MTk0ZGNlNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDA1YjVjOWJhNDQ2ZjI4NTQzZjViM2NjZWVkMGU3M2ViOGUzYjQyNGIwYWQ3
10
- ODkyZmNjOTJmY2ZiMzU5YTA2ODA5N2U5ZGNlZWQ2OWE4ZGU0NzQ1YmJiYmJh
11
- Njk4MDcwNGY1YWZhODg4ZDZhZDMzNjYzNjNlNDM4NzQxYWI2ZjE=
9
+ MDdjMjExYjg5YWJlMGE0NGE5Y2Y0MzVhOWEwYjcyOTkzMzYxZDUyOTZiNmE5
10
+ YzgxYWJmY2EyYzlmMTM1MjdhMGJiM2ZiZjlmNzlkMzExZThmMDExNWUxNDE5
11
+ NTM1ODgzMzQzNGI4NDA5MjA2MjNhY2QxNjVkNDQyNDVlZmM1M2E=
12
12
  data.tar.gz: !binary |-
13
- ZDUzYjViZTE3ODkzMWJlYzdmY2RmMzFmYzBlNGE0MWMyOTUzYmE1YzNkNTJm
14
- Mzk2MDEwOTBjNzk0OTEyNDEyODNkZWEyMzBlY2M5OTJiYTViNzE2MTcyOTlh
15
- NGFjZjc3MDhhMGI4ODg2OGVjNDk2NDg0YzEwMDNlNzdlNTQ5M2Y=
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[:id_key].to_s]
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
@@ -1,3 +1,3 @@
1
1
  module SyncableModels
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end