Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow script/about to run in production mode instead of failing with …

…a cryptic const_missing error.

[#370 state:resolved]
  • Loading branch information...
commit c1ae8b92ac1a9a5f11d5a593a7d8fb6f32c6da9d 1 parent 642b0e9
@chuyeow chuyeow authored jeremy committed
View
2  railties/CHANGELOG
@@ -1,5 +1,7 @@
*2.1.1 (next release)*
+* 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.
View
3  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'
View
1  railties/lib/commands/about.rb
@@ -1,2 +1,3 @@
require 'environment'
+require 'rails/info'
puts Rails::Info
Please sign in to comment.
Something went wrong with that request. Please try again.