public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Allow script/about to run in production mode instead of failing with a cryptic 
const_missing error.

[#370 state:resolved]
chuyeow (author)
Mon Jun 23 06:56:02 -0700 2008
jeremy (committer)
Mon Jun 23 10:27:51 -0700 2008
commit  c1ae8b92ac1a9a5f11d5a593a7d8fb6f32c6da9d
tree    f4c811fb4e011e27a8aca13045b83772a69b0a7e
parent  642b0e95122c6f748ba0575e6dd3e2eccf34509c
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 *2.1.1 (next release)*
0
 
0
+* Fix script/about in production mode.  #370 [Cheah Chu Yeow, Xavier Noria, David Krmpotic]
0
+
0
 * Add the gem load paths before the framework is loaded, so certain gems like RedCloth and BlueCloth can be frozen.
0
 
0
 * Fix discrepancies with loading rails/init.rb from gems.
...
1
2
3
 
 
4
...
1
2
 
3
4
5
0
@@ -1,3 +1,4 @@
0
 #!/usr/bin/env ruby
0
 require File.dirname(__FILE__) + '/../config/boot'
0
-require 'commands/about'
0
+$LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info"
0
+require 'commands/about'
0
\ No newline at end of file
...
1
 
2
...
1
2
3
0
@@ -1,2 +1,3 @@
0
 require 'environment'
0
+require 'rails/info'
0
 puts Rails::Info

Comments