aboutsummaryrefslogtreecommitdiffstats
path: root/rails
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-08-09 19:31:22 +1200
committerPhilip Arndt <parndt@gmail.com>2010-08-09 19:31:22 +1200
commita5fe9225fac33f15e972599132c7f569cc5cf397 (patch)
treef58e7405a03546a37e26f2f1c2694ee12e93fc7d /rails
parent30df46503cf3176a37ad08ff50da7fa25b43e662 (diff)
downloadrefinerycms-blog-a5fe9225fac33f15e972599132c7f569cc5cf397.tar.gz
refinerycms-blog-a5fe9225fac33f15e972599132c7f569cc5cf397.tar.bz2
refinerycms-blog-a5fe9225fac33f15e972599132c7f569cc5cf397.zip
Namespaced blog posts under blog/posts to allow for blog/comments and blog/categories
Diffstat (limited to 'rails')
-rw-r--r--rails/init.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rails/init.rb b/rails/init.rb
index 1877664..13abf82 100644
--- a/rails/init.rb
+++ b/rails/init.rb
@@ -1,7 +1,7 @@
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.url = {:controller => '/admin/blog/posts', :action => 'index'}
+ plugin.menu_match = /^\/?(admin|refinery)\/blog\/?(posts|comments|categories)?/
plugin.activity = {
:class => BlogPost
}