Constant autoloading works fine for gems loaded using config.gem, but fails for gems loaded manually using "gem 'name'; require 'name'". The problem appears to be that ActiveSupport::Dependencies.load_paths doesn't get updated when Gem.activate adds stuff to $LOAD_PATH.
Most annoyingly, this means that gem plugins can manifest an issue where they work correctly from vendor/plugins but fail running from a gem. See #1524 (http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1524 ) for more details. If this behavior is acceptable, it should be documented. Alternatively, it should be fixed (sample code in the ticket). I'd be glad to put together a patch, but how would one write a test for this? Thanks, --Matt Jones [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
