The methods in the last two rows in the block are removed in Rails 3.
%w{ models controllers }.each do |dir|
path = File.join(File.dirname(__FILE__), 'app', dir)
$LOAD_PATH << path
ActiveSupport::Dependencies.load path
ActiveSupport::Dependencies.load_once_paths.delete(path)
end
I wonder how you could autoload the files in the plugins models and controllers folder?