Skip to content

Commit

Permalink
Ignore illyan.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nbudin committed Jun 2, 2011
1 parent 78bdf00 commit bab24fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
config/illyan.yml
pkg pkg
rdoc rdoc
*.kpf *.kpf
Expand Down
8 changes: 8 additions & 0 deletions 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

0 comments on commit bab24fe

Please sign in to comment.