Skip to content

Commit

Permalink
Allow script/about to run in production mode instead of failing with …
Browse files Browse the repository at this point in the history
…a cryptic const_missing error.

[#370 state:resolved]
  • Loading branch information
chuyeow authored and jeremy committed Jun 23, 2008
1 parent d7462ea commit f1cfd12
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions railties/CHANGELOG
@@ -1,5 +1,7 @@
*Edge*

* Fix script/about in production mode. #370 [Cheah Chu Yeow, Xavier Noria, David Krmpotic]

* Add the gem load paths before the framework is loaded, so certain gems like RedCloth and BlueCloth can be frozen.

* Fix discrepancies with loading rails/init.rb from gems.
Expand Down
3 changes: 2 additions & 1 deletion railties/bin/about
@@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/about'
$LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info"
require 'commands/about'
1 change: 1 addition & 0 deletions railties/lib/commands/about.rb
@@ -1,2 +1,3 @@
require 'environment'
require 'rails/info'
puts Rails::Info

0 comments on commit f1cfd12

Please sign in to comment.