Sha256: f92917ed0b903c75590b0fcc78be470095519ea55cd57a7e9745e1cd57ac8807
Contents?: true
Size: 1.27 KB
Versions: 2
Compression:
Stored size: 1.27 KB
Contents
Spina::Engine.configure do config.NEGATIVE_CAPTCHA_SECRET = 'abc' 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)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spina-0.6.22 | test/dummy/config/initializers/spina.rb |
spina-0.6.21 | test/dummy/config/initializers/spina.rb |