From 2dc08f3a496af8ddf8bdbb760b551494ffdefeb2 Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Tue, 31 May 2011 14:16:04 +1200 Subject: tab -> tabs and requiring the file on to_prepare so that it actually loads. Fixed specs now that the form 'looks' different. --- lib/refinerycms-blog.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/refinerycms-blog.rb') diff --git a/lib/refinerycms-blog.rb b/lib/refinerycms-blog.rb index db9beda..407b840 100644 --- a/lib/refinerycms-blog.rb +++ b/lib/refinerycms-blog.rb @@ -3,8 +3,8 @@ require 'filters_spam' module Refinery module Blog autoload :Version, File.expand_path('../refinery/blog/version', __FILE__) - autoload :Tab, File.expand_path("../refinery/blog/tab", __FILE__) - + autoload :Tab, File.expand_path("../refinery/blog/tabs", __FILE__) + class << self def version ::Refinery::Blog::Version.to_s @@ -16,6 +16,10 @@ module Refinery app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public" end + config.to_prepare do + require File.expand_path('../refinery/blog/tabs', __FILE__) + end + config.after_initialize do Refinery::Plugin.register do |plugin| plugin.name = "refinerycms_blog" -- cgit v1.2.3