lib/sibu_apidae.rb in sibu_apidae-0.1.0 vs lib/sibu_apidae.rb in sibu_apidae-0.2.0

- old
+ new

@@ -36,10 +36,11 @@ Apidae::Obj.all.each do |obj| if conf[:supported_types].include?(obj.apidae_type) obj_path = Rails.application.config.sibu_apidae[:obj_path].call(obj) obj_page = Sibu::Page.where(site_id: site_id, path: obj_path).first unless obj_page - p = Sibu::Page.new(name: obj.title, site_id: site_id, path: obj_path) + p = Sibu::Page.new(name: obj.title, site_id: site_id, path: obj_path, title: obj.title, + description: obj.short_desc) p.sections = Rails.application.config.sibu_apidae[:obj_sections].call(obj) p.save! end end end