aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2011-07-01 09:22:59 -0700
committerUģis Ozols <ugis.ozolss@gmail.com>2011-07-01 09:22:59 -0700
commit0076d0a9fa171c6d27b9fc1338ef9ca702e94d58 (patch)
tree2fd3beaa39d0d33205c9e3800b12be0c13cb9981 /lib
parentba071d3776f50b28bd37725ef01e6479d10d2977 (diff)
parent80c7cd4fd1b2e7ffec6a20b2bca5bf1608763a25 (diff)
downloadrefinerycms-blog-0076d0a9fa171c6d27b9fc1338ef9ca702e94d58.tar.gz
refinerycms-blog-0076d0a9fa171c6d27b9fc1338ef9ca702e94d58.tar.bz2
refinerycms-blog-0076d0a9fa171c6d27b9fc1338ef9ca702e94d58.zip
Merge pull request #92 from ruprict/master
Fix plugin pathname
Diffstat (limited to 'lib')
-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 291a968..7100c99 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)?/