Sha256: f914b42898fc4a607657f9fe7aa24945f34ff05f85395fbdef1007d921918b01
Contents?: true
Size: 785 Bytes
Versions: 9
Compression:
Stored size: 785 Bytes
Contents
# Structure tree Sunrise::Plugin.register :structures do |plugin| plugin.model = 'sunrise/models/structure' plugin.menu = 'main' end # Users Sunrise::Plugin.register :users do |plugin| plugin.model = 'sunrise/models/user' plugin.menu = 'main' end # System settings Sunrise::Plugin.register :settings do |plugin| plugin.model = false plugin.menu = 'main' plugin.klass_name = 'Sunrise::SystemSettings' end # Static pages Sunrise::Plugin.register :pages do |plugin| plugin.model = 'sunrise/models/page' plugin.menu = false end # Assets Sunrise::Plugin.register :assets do |plugin| plugin.model = 'sunrise/models/asset' plugin.menu = false end [:structures, :users, :settings, :pages, :assets].each { |plugin_name| Sunrise::Plugins.activate(plugin_name) }
Version data entries
9 entries across 9 versions & 1 rubygems