Skip to content

Commit

Permalink
Fix plugin pathname so refinery:override tasks work
Browse files Browse the repository at this point in the history
  • Loading branch information
ruprict committed Jul 1, 2011
1 parent 66d35b5 commit 80c7cd4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/refinerycms-blog.rb
Expand Up @@ -6,6 +6,10 @@ module Blog
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
Expand All @@ -22,6 +26,7 @@ class Engine < Rails::Engine

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)?/
Expand Down

0 comments on commit 80c7cd4

Please sign in to comment.