aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Goodrich <glenn.goodrich@gmail.com>2011-07-01 12:20:28 -0400
committerGlenn Goodrich <glenn.goodrich@gmail.com>2011-07-01 12:20:28 -0400
commit80c7cd4fd1b2e7ffec6a20b2bca5bf1608763a25 (patch)
tree76853b5022c22bf370447d00b4faf2868d177185
parent66d35b52f7fce8e44828124a40dfbf2cd079e56c (diff)
downloadrefinerycms-blog-80c7cd4fd1b2e7ffec6a20b2bca5bf1608763a25.tar.gz
refinerycms-blog-80c7cd4fd1b2e7ffec6a20b2bca5bf1608763a25.tar.bz2
refinerycms-blog-80c7cd4fd1b2e7ffec6a20b2bca5bf1608763a25.zip
Fix plugin pathname so refinery:override tasks work
-rw-r--r--lib/refinerycms-blog.rb5
1 files changed, 5 insertions, 0 deletions
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)?/