From 80c7cd4fd1b2e7ffec6a20b2bca5bf1608763a25 Mon Sep 17 00:00:00 2001 From: Glenn Goodrich Date: Fri, 1 Jul 2011 12:20:28 -0400 Subject: Fix plugin pathname so refinery:override tasks work --- lib/refinerycms-blog.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/refinerycms-blog.rb b/lib/refinerycms-blog.rb index 407b840..752cba3 100644 --- a/lib/refinerycms-blog.rb +++ b/lib/refinerycms-blog.rb @@ -6,6 +6,10 @@ module Refinery autoload :Tab, File.expand_path("../refinery/blog/tabs", __FILE__) class << self + attr_accessor :root + def root + @root ||= Pathname.new(File.expand_path('../../', __FILE__)) + end def version ::Refinery::Blog::Version.to_s end @@ -22,6 +26,7 @@ module Refinery config.after_initialize do Refinery::Plugin.register do |plugin| + plugin.pathname = root plugin.name = "refinerycms_blog" plugin.url = {:controller => '/admin/blog/posts', :action => 'index'} plugin.menu_match = /^\/?(admin|refinery)\/blog\/?(posts|comments|categories)?/ -- cgit v1.2.3