From 567bdd63344bed3e293471b0dc30d1d4d7b2c470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Thu, 22 Dec 2011 11:36:48 +0200 Subject: Return correct root path. --- lib/refinery/blog.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3