Module: Redmine::Themes

Defined in:
lib/redmine/themes.rb

Defined Under Namespace

Classes: Theme

Class Method Summary (collapse)

Class Method Details

+ (Object) rescan

Rescan themes directory



27
28
29
# File 'lib/redmine/themes.rb', line 27

def self.rescan
  @@installed_themes = scan_themes
end

+ (Object) theme(id)

Return theme for given id, or nil if it's not found



32
33
34
# File 'lib/redmine/themes.rb', line 32

def self.theme(id)
  themes.find {|t| t.id == id}
end

+ (Object) themes

Return an array of installed themes



22
23
24
# File 'lib/redmine/themes.rb', line 22

def self.themes
  @@installed_themes ||= scan_themes
end