Sha256: 9f57b43292546a8cba1de567de57c92c7b78e6fbd38e2f6f8e452b2dc715cdaf
Contents?: true
Size: 1.09 KB
Versions: 3
Compression:
Stored size: 1.09 KB
Contents
Zen::Package.add do |p| p.name = :menus p.title = 'menus.titles.index' p.author = 'Yorick Peterse' p.url = 'http://zen-cms.com/' p.about = 'menus.description' p.root = __DIR__('menus') p.migrations = __DIR__('../migrations') p.menu('menus.titles.index', '/admin/menus', :permission => :show_menu) p.permission :show_menu , 'menus.permissions.show' p.permission :edit_menu , 'menus.permissions.edit' p.permission :new_menu , 'menus.permissions.new' p.permission :delete_menu, 'menus.permissions.delete' p.permission :show_menu_item , 'menu_items.permissions.show' p.permission :edit_menu_item , 'menu_items.permissions.edit' p.permission :new_menu_item , 'menu_items.permissions.new' p.permission :delete_menu_item, 'menu_items.permissions.delete' end Zen::Language.load('menus') Zen::Language.load('menu_items') require __DIR__('menus/model/menu') require __DIR__('menus/model/menu_item') require __DIR__('menus/controller/menus') require __DIR__('menus/controller/menu_items') Zen::Controller::FrontendController.helper(:menu_frontend)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zen-0.3 | lib/zen/package/menus/lib/menus.rb |
zen-0.3b1 | lib/zen/package/menus/lib/menus.rb |
zen-0.3b | lib/zen/package/menus/lib/menus.rb |