From bc4fa6b198557a7f3989eb0865e2c77ac7451d29 Mon Sep 17 00:00:00 2001 From: kibigo! Date: Sun, 3 Dec 2017 23:26:40 -0800 Subject: Rename themes -> flavours ? ? --- app/lib/themes.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/lib') diff --git a/app/lib/themes.rb b/app/lib/themes.rb index f1796d0e3..863326e2d 100644 --- a/app/lib/themes.rb +++ b/app/lib/themes.rb @@ -12,7 +12,7 @@ class Themes core['pack'] = Hash.new unless core['pack'] result = Hash.new - Dir.glob(Rails.root.join('app', 'javascript', 'themes', '*', 'theme.yml')) do |path| + Dir.glob(Rails.root.join('app', 'javascript', 'flavours', '*', 'theme.yml')) do |path| data = YAML.load_file(path) name = File.basename(File.dirname(path)) if data['pack'] @@ -51,11 +51,11 @@ class Themes @core end - def get(name) + def flavour(name) @conf[name] end - def names + def flavours @conf.keys end -- cgit