lib/syncify/sync.rb in syncify-0.1.2 vs lib/syncify/sync.rb in syncify-0.1.3

- old
+ new

@@ -75,10 +75,10 @@ def sync_records ActiveRecord::Base.connection.disable_referential_integrity do classify_identified_instances.each do |class_name, new_instances| puts "Syncing #{new_instances.size} #{class_name} objects" clazz = Object.const_get(class_name) - clazz.where(id: [new_instances.map(&:id)]).delete_all + clazz.where(id: new_instances.map(&:id)).delete_all clazz.import(new_instances, validate: false) end end end