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

Version Path
sunrise-core-0.2.2 lib/sunrise/core_plugins.rb
sunrise-core-0.2.1 lib/sunrise/core_plugins.rb
sunrise-core-0.2.0 lib/sunrise/core_plugins.rb
sunrise-core-0.1.5 lib/sunrise/core_plugins.rb
sunrise-core-0.1.4 lib/sunrise/core_plugins.rb
sunrise-core-0.1.3 lib/sunrise/core_plugins.rb
sunrise-core-0.1.2 lib/sunrise/core_plugins.rb
sunrise-core-0.1.1 lib/sunrise/core_plugins.rb
sunrise-core-0.1.0 lib/sunrise/core_plugins.rb