Sha256: 837b61f3ab76f60f6bd66137d1106578818d97ef3f5ff715bd2877600edcc5f7
Contents?: true
Size: 1.41 KB
Versions: 4
Compression:
Stored size: 1.41 KB
Contents
require __DIR__('categories/model/category_group') require __DIR__('categories/model/category') require __DIR__('categories/controller/category_groups') require __DIR__('categories/controller/categories') require __DIR__('categories/plugin/categories') # Load the language pack manually so it can be used in the block below Zen::Language.options.paths.push(__DIR__('categories')) Zen::Language.load('categories') Zen::Language.load('category_groups') # Describe what this package is all about Zen::Package.add do |p| p.name = 'categories' p.author = 'Yorick Peterse' p.url = 'http://yorickpeterse.com/' p.about = "Module for managing categories. Categories can be used to organize section entries." p.directory = __DIR__('categories') p.migration_dir = __DIR__('../migrations') p.menu = [{ :title => lang('categories.titles.index'), :url => "admin/category-groups" }] # Register all controllers p.controllers = { lang('categories.titles.index') => Categories::Controller::Categories, lang('category_groups.titles.index') => Categories::Controller::CategoryGroups } end # Register our plugins Zen::Plugin.add do |p| p.name = 'categories' p.author = 'Yorick Peterse' p.url = 'http://yorickpeterse.com/' p.about = 'Plugin that makes it easier to retrieve categories and category groups.' p.plugin = Categories::Plugin::Categories end
Version data entries
4 entries across 4 versions & 1 rubygems