title: How to remove trailing symbol for a constant in Rails initializer?
body: <p>How does one remove trailing character correctly in the following sentence if it's in <code>config/environment.rb</code> file.</p>
  
  <pre><code>KEY = ENV['KEY'].delete "\r"
  </code></pre>
  
  <p>It produces the following error:</p>
  
  <pre><code>undefined method `delete' for nil:NilClass (NoMethodError)
  </code></pre>
  
  <p>It works well in IRB, but not in environment.rb</p>
  
  <p><strong>Solved</strong></p>
  
  <p>Aptana Studio 3 stopped to load .bashrc after the latest update. Thanks to Mladen and Mark for help.</p>