Rails 2.0 dependency system problems
This is one of those “PC Load Letter!?!?!” bugs that had be me stumped for longer than it should have. I was using the restful_comments plugin and noticed after upgrading to Rails 2 that I could only post one comment, after which point the system would start dying with bizarre errors such as “User expected, got User”.
I was also getting messages relating to “A copy of AuthenticatedSystem has been removed from the module tree but is still active”. Both of these issues (which sound a little too PC-Load-Letterish for me to believe DHH and friends weren’t watching Office Space when they created these error messages) - are basically a result of the wacky new Rails dependency system.
config.load_once_paths += %W( #{RAILS_ROOT}/lib )
Resources
I didn’t dig deep into the dependency system to understand the source of these issues, but for those brave enough to try, here are some resources and rails tickets toget you started.
- http://dev.rubyonrails.org/ticket/5852
- http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/
- http://dev.rubyonrails.org/ticket/6001










2 Comments