<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -10,10 +10,9 @@ namespace :simple_config do
     mkdir('config/settings')
     mkdir(&quot;config/initializers&quot;) unless File.exist?(&quot;config/initializers&quot;)
     
-    Dir[&quot;config/environments/*.rb&quot;].each do |f|
-      env = File.basename(f, &quot;.rb&quot;)
-      touch(&quot;config/settings/#{env}.rb&quot;)
-    end
+    environments =  Dir[&quot;config/environments/*.rb&quot;].map { |f| File.basename(f, &quot;.rb&quot;) }
+    environments &lt;&lt; 'application'
+    environments.each { |env| touch(&quot;config/settings/#{env}.rb&quot;) }
     
     cp(File.join(File.dirname(__FILE__), *%w[.. templates configuration.rb]), 
         &quot;config/initializers/configuration.rb&quot;)</diff>
      <filename>tasks/simple_config.rake</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,18 @@
 SimpleConfig.for :application do
-
-  # your app configuration here
   
-  load File.join(RAILS_ROOT, 'config', &quot;settings&quot;, &quot;#{RAILS_ENV}.rb&quot;), :if_exists? =&gt; true
-  load File.join(RAILS_ROOT, 'config', &quot;settings&quot;, &quot;local.rb&quot;),        :if_exists? =&gt; true
+  # Set here your global configuration.
+  # All settings can be overwritten later per-environment.
+  load File.join(RAILS_ROOT, 'config', &quot;settings&quot;, &quot;application.rb&quot;),   :if_exists? =&gt; true
+  
+  # Per Environment settings.
+  # At startup only the file matching current environment will be loaded.
+  # Settings stored here will overwrite settings with the same name stored in application.rb
+  load File.join(RAILS_ROOT, 'config', &quot;settings&quot;, &quot;#{RAILS_ENV}.rb&quot;),  :if_exists? =&gt; true
+  
+  # Local settings. It is designed as a place for you to override variables 
+  # specific to your own development environment.
+  # Make sure your version control system ignores this file otherwise 
+  # you risk checking in a file that will override values in production
+  load File.join(RAILS_ROOT, 'config', &quot;settings&quot;, &quot;local.rb&quot;),         :if_exists? =&gt; true
   
 end</diff>
      <filename>templates/configuration.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c1c5dfe4e4c5fda97e5e76419bab48ea8f53ba2f</id>
    </parent>
  </parents>
  <author>
    <name>Simone Carletti</name>
    <email>weppos@weppos.net</email>
  </author>
  <url>http://github.com/lukeredpath/simpleconfig/commit/255959baef6dbb09f03979ea632afcf0f87a404c</url>
  <id>255959baef6dbb09f03979ea632afcf0f87a404c</id>
  <committed-date>2009-02-03T07:15:22-08:00</committed-date>
  <authored-date>2008-12-02T06:37:22-08:00</authored-date>
  <message>Added application.rb file to the list of configuration files loaded at startup. Instead of writing all configurations in the initializer file, now you can use the application.rb file to store default application settings and overwrite values per-enviroment depending on your needs.

Signed-off-by: Luke Redpath &lt;contact@lukeredpath.co.uk&gt;</message>
  <tree>39034cfaa07d984046421a9298279d7dfe9a914c</tree>
  <committer>
    <name>Luke Redpath</name>
    <email>contact@lukeredpath.co.uk</email>
  </committer>
</commit>
