From fccc86e63c856dba5f62e6d7b5ea0868aec872b3 Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Tue, 6 Mar 2012 13:17:41 +1300 Subject: Updated to support Refinery CMS 2.0.1 and Rails 3.2.2 --- lib/refinery/blog/engine.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/refinery/blog/engine.rb') diff --git a/lib/refinery/blog/engine.rb b/lib/refinery/blog/engine.rb index f444f2d..f81e110 100644 --- a/lib/refinery/blog/engine.rb +++ b/lib/refinery/blog/engine.rb @@ -9,11 +9,9 @@ module Refinery Refinery::Plugin.register do |plugin| plugin.pathname = root plugin.name = "refinerycms_blog" - plugin.url = {:controller => 'refinery/blog/admin/posts'} + plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.blog_admin_posts_path } plugin.menu_match = /refinery\/blog\/?(posts|comments|categories)?/ - plugin.activity = { - :class_name => :'refinery/blog/post' - } + plugin.activity = { :class_name => :'refinery/blog/post' } end end -- cgit v1.2.3