This project is archived and is in readonly mode.

#1326 ✓committed
Akira Matsuda

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

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