test/dummy/config/initializers/spina.rb in spina-0.6.22 vs test/dummy/config/initializers/spina.rb in spina-0.6.23

- old
+ new

@@ -1,58 +1,3 @@ Spina::Engine.configure do - config.NEGATIVE_CAPTCHA_SECRET = 'abc' + config.NEGATIVE_CAPTCHA_SECRET = '3f4539dc9dd9352a98acac830c2c006ef2b804c3d8936fdd332dea67f1389e005c0a4caab6f2058873c2a2501b114710d0082f0844eaa5e04f82d7e1ab6915c0' end - -module Spina - module DefaultTheme - include ::ActiveSupport::Configurable - - config_accessor :title, :page_parts, :view_templates, :layout_parts, :custom_pages, :plugins, :structures - - self.title = "Default theme" - - self.page_parts = [{ - name: 'content', - title: 'Content', - page_partable_type: "Spina::Text" - }, { - name: 'team', - title: 'Team', - page_partable_type: "Spina::Structure" - }] - - self.structures = { - 'team' => [{ - name: 'name', - title: 'Naam', - structure_partable_type: "Spina::Line" - }, { - name: 'description', - title: 'Omschrijving', - structure_partable_type: "Spina::Text" - }, { - name: 'photo', - title: 'Foto', - structure_partable_type: "Spina::Photo" - }] - } - - self.layout_parts = [] - - self.custom_pages = [] - self.plugins = [] - - self.view_templates = { - 'show' => { - title: 'Default', - description: 'Default template', - usage: 'Default page', - page_parts: ['content', 'team'] - } - } - end -end - -theme = Spina::Theme.new -theme.name = "Default theme" -theme.config = Spina::DefaultTheme.config -Spina.register_theme(theme)