Permalink
Browse files

Ignore illyan.yml

  • Loading branch information...
1 parent 78bdf00 commit bab24fe1325b0a20564d8837a47b4f3bd4a71b7d @nbudin committed Jun 2, 2011
Showing with 9 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +8 −0 config/initializers/illyan_conf.rb
View
@@ -1,3 +1,4 @@
+config/illyan.yml
pkg
rdoc
*.kpf
@@ -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

0 comments on commit bab24fe

Please sign in to comment.