diff options
author | Philip Arndt <parndt@gmail.com> | 2010-08-09 16:47:56 +1200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2010-08-09 16:47:56 +1200 |
commit | 837ea01a34a7dddeefe8086b2c6fc28e9a14616c (patch) | |
tree | 26c3c55c9026518de8b0626001cc55116bc5c87e /rails | |
parent | 9a8b95e9aa71529d7b4173a3afce49b199a60615 (diff) | |
download | refinerycms-blog-837ea01a34a7dddeefe8086b2c6fc28e9a14616c.tar.gz refinerycms-blog-837ea01a34a7dddeefe8086b2c6fc28e9a14616c.tar.bz2 refinerycms-blog-837ea01a34a7dddeefe8086b2c6fc28e9a14616c.zip |
Initial commit - you can create, edit and delete a blog post and it respects the fact that it is draft or not.
Diffstat (limited to 'rails')
-rw-r--r-- | rails/init.rb | 10 |
1 files changed, 10 insertions, 0 deletions
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 |