diff options
author | Jamie Winsor <jamie@enmasse.com> | 2011-10-28 12:14:03 -0700 |
---|---|---|
committer | Jamie Winsor <jamie@enmasse.com> | 2011-10-28 12:15:07 -0700 |
commit | 3165574730abe9515061e07fbc43433a2e4a50ad (patch) | |
tree | 1544bc18bbdf6aece9fababf7310457fd87d9f80 /lib/refinery/blog.rb | |
parent | 4577f788e5163fc8ae8ab2d5514f18bc4afaef69 (diff) | |
download | refinerycms-blog-3165574730abe9515061e07fbc43433a2e4a50ad.tar.gz refinerycms-blog-3165574730abe9515061e07fbc43433a2e4a50ad.tar.bz2 refinerycms-blog-3165574730abe9515061e07fbc43433a2e4a50ad.zip |
Move blog tab accessor and class array to blog file from tab file
Diffstat (limited to 'lib/refinery/blog.rb')
-rw-r--r-- | lib/refinery/blog.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/refinery/blog.rb b/lib/refinery/blog.rb index af39967..326e36a 100644 --- a/lib/refinery/blog.rb +++ b/lib/refinery/blog.rb @@ -12,10 +12,16 @@ module Refinery autoload :Tab, 'refinery/blog/tabs' class << self - attr_accessor :root + attr_writer :root + attr_writer :tabs + def root @root ||= Pathname.new(File.expand_path('../../', __FILE__)) end + + def tabs + @tabs ||= [] + end def version ::Refinery::Blog::Version.to_s |