title: `const_missing': uninitialized constant (NameError)
body: <p>Every time I try to run any class from my rails 2.2 app's lib directory using "script/runner -e production ClassName.run" I get the following error:</p>
  
  <pre><code>/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/runner.rb:47:  
  /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:89:in `const_missing': uninitialized constant ClassName (NameError)"
  </code></pre>
  
  <p>For some reason I don't get this error when I run it as <code>test</code> instead of <code>production</code>, and everything works fine.</p>
  
  <p>O yeah <code>run</code> is a class method i.e. <code>def self.run .... end</code></p>
  
  <p>Any suggestions?</p>