This project is archived and is in readonly mode.
Ruby 1.9 compat: rails app generator should require activesupport/secure_random
Reported by Akira Matsuda | November 4th, 2008 @ 10:49 AM
"rails" command fails with the following error message when executed by Ruby 1.9.
$RAILS_DIR/activesupport/lib/active_support/dependencies.rb:428:in `rescue in load_missing_constant'
$RAILS_DIR/activesupport/lib/active_support/dependencies.rb:424:in `load_missing_constant'
$RAILS_DIR/activesupport/lib/active_support/dependencies.rb:77:in `const_missing_with_dependencies'
$RAILS_DIR/railties/lib/rails_generator/generators/applications/app/app_generator.rb:38:in `manifest'
$RAILS_DIR/railties/lib/rails_generator/commands.rb:42:in `invoke!'
$RAILS_DIR/railties/lib/rails_generator/scripts.rb:31:in `run'
$RAILS_DIR/railties/bin/rails:17:in `<main>'
This patch fixes the problem by requiring active_support/secure_random.
Comments and changes to this ticket
-
DHH November 19th, 2008 @ 09:50 AM
- Assigned user set to Jeremy Kemper
-
Jeremy Kemper November 19th, 2008 @ 05:57 PM
- Milestone cleared.
-
Repository November 19th, 2008 @ 05:58 PM
- State changed from new to committed
(from [baa8ee5eb1056d07c6623c37a57818317cd5bcc4]) Require active_support/secure_random for Ruby 1.9.
[#1326 state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...
-
Repository November 19th, 2008 @ 06:18 PM
(from [011a525de0f4a5d778d373b53230ebd3765d4b62]) Require active_support/secure_random for Ruby 1.9.
[#1326 state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 1326 Ruby 1.9 compat: rails app generator should require activesupport/secure_random [#1326 state:committed]
- 1326 Ruby 1.9 compat: rails app generator should require activesupport/secure_random [#1326 state:committed]