aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2011-12-22 11:36:48 +0200
committerUģis Ozols <ugis.ozolss@gmail.com>2011-12-22 11:36:48 +0200
commit567bdd63344bed3e293471b0dc30d1d4d7b2c470 (patch)
treea61f240bb4ff50dbd987d0ff07d88142fe278bc8 /lib
parent547c8bcff27291945d65ed0504a3ea142334db1c (diff)
downloadrefinerycms-blog-567bdd63344bed3e293471b0dc30d1d4d7b2c470.tar.gz
refinerycms-blog-567bdd63344bed3e293471b0dc30d1d4d7b2c470.tar.bz2
refinerycms-blog-567bdd63344bed3e293471b0dc30d1d4d7b2c470.zip
Return correct root path.
Diffstat (limited to 'lib')
-rw-r--r--lib/refinery/blog.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/refinery/blog.rb b/lib/refinery/blog.rb
index 6b3b72c..2023066 100644
--- a/lib/refinery/blog.rb
+++ b/lib/refinery/blog.rb
@@ -4,11 +4,11 @@ require 'rails_autolink'
module Refinery
autoload :BlogGenerator, 'generators/refinery/blog/blog_generator'
-
+
module Blog
require 'refinery/blog/engine' if defined?(Rails)
-
+
autoload :Version, 'refinery/blog/version'
autoload :Tab, 'refinery/blog/tabs'
@@ -17,9 +17,9 @@ module Refinery
attr_writer :tabs
def root
- @root ||= Pathname.new(File.expand_path('../../', __FILE__))
+ @root ||= Pathname.new(File.expand_path('../../../', __FILE__))
end
-
+
def tabs
@tabs ||= []
end
@@ -27,11 +27,11 @@ module Refinery
def version
::Refinery::Blog::Version.to_s
end
-
+
def factory_paths
@factory_paths ||= [ root.join("spec/factories").to_s ]
end
-
+
def table_name_prefix
'refinery_blog_'
end