diff --git a/.gitignore b/.gitignore index 3d771e6..186fcfd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +config/illyan.yml pkg rdoc *.kpf diff --git a/config/initializers/illyan_conf.rb b/config/initializers/illyan_conf.rb new file mode 100644 index 0000000..0a424af --- /dev/null +++ b/config/initializers/illyan_conf.rb @@ -0,0 +1,8 @@ +config_file = File.expand_path("../../illyan.yml", __FILE__) + +if File.exist?(config_file) + options = YAML.load(File.open(config_file)) + %w{site_title site_logo theme account_name}.each do |var| + Illyan::Application.send("#{var}=", options[var]) unless options[var].blank? + end +end \ No newline at end of file