aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-05-31 14:16:04 +1200
committerPhilip Arndt <parndt@gmail.com>2011-05-31 14:16:04 +1200
commit2dc08f3a496af8ddf8bdbb760b551494ffdefeb2 (patch)
tree3c8f343917573cf40580a3eb242e10953b20df9e /lib
parent60fc7839f8b6227951eed454442b69836840df01 (diff)
downloadrefinerycms-blog-2dc08f3a496af8ddf8bdbb760b551494ffdefeb2.tar.gz
refinerycms-blog-2dc08f3a496af8ddf8bdbb760b551494ffdefeb2.tar.bz2
refinerycms-blog-2dc08f3a496af8ddf8bdbb760b551494ffdefeb2.zip
tab -> tabs and requiring the file on to_prepare so that it actually loads. Fixed specs now that the form 'looks' different.
Diffstat (limited to 'lib')
-rw-r--r--lib/refinery/blog/tabs.rb (renamed from lib/refinery/blog/tab.rb)0
-rw-r--r--lib/refinerycms-blog.rb8
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/refinery/blog/tab.rb b/lib/refinery/blog/tabs.rb
index 083d50b..083d50b 100644
--- a/lib/refinery/blog/tab.rb
+++ b/lib/refinery/blog/tabs.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"