lib/sibu_apidae.rb in sibu_apidae-0.3.0 vs lib/sibu_apidae.rb in sibu_apidae-0.3.1

- old
+ new

@@ -54,10 +54,10 @@ .find {|p| p.source == APIDAE_OBJ_SOURCE && p.external_id == obj.apidae_id} unless obj_page p = Sibu::Page.new(name: obj.title, site_id: site_id, path: conf[:obj_path].call(obj), title: obj.title, description: obj.short_desc, source: APIDAE_OBJ_SOURCE, external_id: conf[:page_external_id].call(obj)) - p.sections = conf[:obj_sections].call(obj) + p.sections = conf[:obj_sections].call(obj, site_id) p.save! end end end else