app/services/maglev/setup_pages.rb in maglevcms-1.5.1 vs app/services/maglev/setup_pages.rb in maglevcms-1.6.0

- old
+ new

@@ -72,9 +72,12 @@ end def select_site_scoped_sections(sections) (sections || []).find_all do |section| definition = theme.sections.find(section['type']) + + raise "[Maglev] Unknown section type: #{section['type']}" unless definition + definition.site_scoped? end end end end