aboutsummaryrefslogtreecommitdiffstats
path: root/lib/refinerycms-blog.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/refinerycms-blog.rb')
-rw-r--r--lib/refinerycms-blog.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/refinerycms-blog.rb b/lib/refinerycms-blog.rb
index 7100c99..452863b 100644
--- a/lib/refinerycms-blog.rb
+++ b/lib/refinerycms-blog.rb
@@ -8,8 +8,9 @@ module Refinery
class << self
attr_accessor :root
def root
- @root ||= Pathname.new(File.expand_path('../../', __FILE__))
+ @root ||= Pathname.new(File.expand_path('../../', __FILE__))
end
+
def version
::Refinery::Blog::Version.to_s
end
@@ -26,7 +27,7 @@ module Refinery
config.after_initialize do
Refinery::Plugin.register do |plugin|
- plugin.pathname = root
+ plugin.pathname = root
plugin.name = "refinerycms_blog"
plugin.url = {:controller => '/admin/blog/posts', :action => 'index'}
plugin.menu_match = /^\/?(admin|refinery)\/blog\/?(posts|comments|categories)?/