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:33 -0700 2008
commit  f1cfd1248734ceaa50c1857f33d7ee0ecfdce3e6
tree    7f338bd6cbc1329d64d1216dce05ac6af72f56b0
parent  d7462ea36550bd59cfbcd7961f5870c49bcf8963
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 *Edge*
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