diff options
author | Philip Arndt <parndt@gmail.com> | 2011-07-02 11:58:26 +1200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2011-07-02 11:58:26 +1200 |
commit | 0e4dbb28e923ca2a9065f23ba433ce74f9f0d42d (patch) | |
tree | 4bdf242e8f9ed72c9bc1abedea093bf2f8ea40d8 /lib | |
parent | 0076d0a9fa171c6d27b9fc1338ef9ca702e94d58 (diff) | |
download | refinerycms-blog-0e4dbb28e923ca2a9065f23ba433ce74f9f0d42d.tar.gz refinerycms-blog-0e4dbb28e923ca2a9065f23ba433ce74f9f0d42d.tar.bz2 refinerycms-blog-0e4dbb28e923ca2a9065f23ba433ce74f9f0d42d.zip |
Fixed indentation, use spaces not tabs.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/refinerycms-blog.rb | 5 |
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)?/ |