From 837ea01a34a7dddeefe8086b2c6fc28e9a14616c Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Mon, 9 Aug 2010 16:47:56 +1200 Subject: Initial commit - you can create, edit and delete a blog post and it respects the fact that it is draft or not. --- rails/init.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 rails/init.rb (limited to 'rails/init.rb') diff --git a/rails/init.rb b/rails/init.rb new file mode 100644 index 0000000..1877664 --- /dev/null +++ b/rails/init.rb @@ -0,0 +1,10 @@ +Refinery::Plugin.register do |plugin| + plugin.name = "refinerycms_blog" + plugin.url = {:controller => '/admin/blog_posts', :action => 'index'} + plugin.menu_match = /^\/?(admin|refinery)\/blog_(posts|comments|categories)/ + plugin.activity = { + :class => BlogPost + } + + plugin.directory = directory # tell refinery where this plugin is located +end -- cgit v1.2.3