Move blog tab accessor and class array to blog file from tab file

This commit is contained in:
Jamie Winsor 2011-10-28 12:14:03 -07:00
parent 4577f788e5
commit 3165574730
2 changed files with 12 additions and 12 deletions

View file

@ -12,11 +12,17 @@ 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
end

View file

@ -1,11 +1,5 @@
module Refinery
module Blog
attr_accessor :tabs
def self.tabs
@tabs ||= []
end
class Tab
attr_accessor :name, :partial