This project is archived and is in readonly mode.

#3330 ✓resolved
josh

Upgrade path for railties prefix change

Reported by josh | October 4th, 2009 @ 06:34 PM | in 3.0.2

This was super frustrating to figure out. If you don't fix the "rails/" namespace, rubygems tries to activate an old system gem and dies with the worst error message.

$ rake --trace        
(in /Volumes/37signals/foo)
rake aborted!
undefined method `map' for nil:NilClass
/Users/josh/.rvm/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems.rb:270:in `activate'
/Users/josh/.rvm/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:35:in `require'
/Volumes/37signals/foo/Rakefile:10

The error is caused by our rubygem hackery. We probably want to hack loaded_stacks too to fix this message.

Gem.instance_variable_get("@loaded_stacks")[stub] = []

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

Pages