Method: ComfortableMexicanSofa::Seeds::Page::Importer#import!

Defined in:
lib/comfortable_mexican_sofa/seeds/page/importer.rb

#import!Object



15
16
17
18
19
20
21
22
# File 'lib/comfortable_mexican_sofa/seeds/page/importer.rb', line 15

def import!
  import_page(File.join(path, "index/"), nil)

  link_target_pages

  # Remove pages not found in seeds
  site.pages.where("id NOT IN (?)", seed_ids).destroy_all
end