title: Rails 4.1 environment variables not reloading
body: <p>I created an <code>application.yml</code> file in the config dir and added some key-value pairs (i.e. <code>AWS_REGION: us-east-1</code>). I also added the following to <code>application.rb</code> to read the file and update the ENV hash:</p>
  
  <pre><code>if Rails.env.development?  
    config.before_configuration do
      env_file = File.join(Rails.root, 'config', 'application.yml')
      YAML.load(File.open(env_file)).each do |key, value|
        ENV[key.to_s] = value
      end if File.exists?(env_file)
    end
  end
  </code></pre>
  
  <p>Then, if I run <code>rails c</code> I can see the ENV variables I set in my <code>application.yml</code> file (i.e. <code>ENV['AWS_REGION']</code>). However, if I update any of the values or even add a new key-value pair to the file, on the next time I run <code>rails c</code> the values aren't updated and the new keys aren't available.</p>
  
  <p>I tried restarting Terminal but it didn't work. Any suggestions?</p>