module Theme

Public Class Methods

current_theme(env = nil) click to toggle source
# File lib/theme.rb, line 3
def current_theme(env = nil)
  ::RefinerySetting[:theme]
end
current_theme_dir() click to toggle source
# File lib/theme.rb, line 11
def current_theme_dir
  theme = self.current_theme
  theme_dir = Rails.root.join("themes",theme)
  theme_dir = self.root.join('themes', theme) unless theme_dir.directory?
  theme_dir
end
root() click to toggle source
# File lib/theme.rb, line 7
def root
  Pathname.new( File.expand_path('../../', __FILE__) )
end