lib/sibu_apidae.rb in sibu_apidae-0.3.2 vs lib/sibu_apidae.rb in sibu_apidae-0.3.3

- old
+ new

@@ -41,10 +41,10 @@ apidae_pages = apidae_pages.select {|p| p.external_id == obj_apidae_id} unless obj_apidae_id.blank? apidae_pages.each do |p| obj = Apidae::Obj.find_by_apidae_id(p.external_id) if obj p.update(name: obj.title, title: obj.title, description: obj.short_desc, - path: conf[:obj_path].call(obj)) + path: conf[:obj_path].call(obj), sections: conf[:obj_sections].call(obj, site_id)) else Rails.logger.info("Deleting page #{p.id} after object deletion (#{p.external_id})") p.destroy end end