lib/geri/config.rb in geri-0.0.1 vs lib/geri/config.rb in geri-0.1.0

- old
+ new

@@ -1,17 +1,16 @@ require_relative './config/menu_item' module Geri module Config include ActiveSupport::Configurable config_accessor :admin_path # route to the administrative backend - config_accessor :menu_items, instance_reader: false # menu item registry + config_accessor :menu_items # menu item registry config_accessor :site_name # name of the site - config_accessor :mount_point # sets the mount point for the Geri::Engine # Defaults self.admin_path = '/admin' self.menu_items = [] - self.mount_point = '/' + self.site_name = 'GeriCMS' def self.register_menu_item(title, path_or_options=nil, options={}) self.menu_items << item = MenuItem.new(title, path_or_options, options) yield item if block_given? self.menu_items.sort! { |a,b| a.priority <=> b.priority } \ No newline at end of file