Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [c1304098cca8a9247a9ad1461a1a343354650843] by Carlhuda

Revision c1304098cca8a9247a9ad1461a1a343354650843, committed by Carlhuda · December 3rd, 2009 @ 04:01 AM

Reorganize autoloads:

  • A new module (ActiveSupport::Autoload) is provide that extends autoloading with new behavior.
  • All autoloads in modules that have extended ActiveSupport::Autoload will be eagerly required in threadsafe environments
  • Autoloads can optionally leave off the path if the path is the same as full_constant_name.underscore
  • It is possible to specify that a group of autoloads live under an additional path. For instance, all of ActionDispatch's middlewares are ActionDispatch::MiddlewareName, but they live under "action_dispatch/middlewares/middleware_name"
  • It is possible to specify that a group of autoloads are all found at the same path. For instance, a number of exceptions might all be declared there.
  • One consequence of this is that testing-related constants are not autoloaded. To get the testing helpers for a given component, require "component_name/test_case". For instance, "action_controller/test_case".
  • test_help.rb, which is automatically required by a Rails application's test helper, requires the test_case.rb for all active components, so this change will not be disruptive in existing or new applications. http://github.com/rails/rails/commit/c1304098cca8a9247a9ad1461a1a34...

55 changed files

  • A actionpack/lib/action_controller/metal/rescue.rb
  • A actionpack/lib/action_controller/test_case.rb
  • A actionpack/lib/action_dispatch/test_case.rb
  • A actionpack/lib/action_view/template.rb
  • A activesupport/lib/active_support/dependencies/autoload.rb
  • A activesupport/test/autoload.rb
  • A activesupport/test/fixtures/autoload/another_class.rb
  • A activesupport/test/fixtures/autoload/some_class.rb
  • R actionpack/lib/action_controller/metal/rescuable.rb
  • R actionpack/lib/action_controller/testing/test_case.rb
  • R actionpack/lib/action_view/template/template.rb
  • M actionmailer/lib/action_mailer.rb
  • M actionmailer/lib/action_mailer/base.rb
  • M actionmailer/lib/action_mailer/delivery_method/file.rb
  • M actionmailer/lib/action_mailer/mail_helper.rb
  • M actionpack/lib/abstract_controller.rb
  • M actionpack/lib/abstract_controller/rendering_controller.rb
  • M actionpack/lib/action_controller.rb
  • M actionpack/lib/action_controller/base.rb
  • M actionpack/lib/action_controller/caching.rb
  • M actionpack/lib/action_controller/deprecated/integration_test.rb
  • M actionpack/lib/action_controller/metal/compatibility.rb
  • M actionpack/lib/action_controller/metal/helpers.rb
  • M actionpack/lib/action_controller/vendor/html-scanner.rb
  • M actionpack/lib/action_dispatch.rb
  • M actionpack/lib/action_dispatch/middleware/show_exceptions.rb
  • M actionpack/lib/action_view.rb
  • M actionpack/lib/action_view/base.rb
  • M actionpack/lib/action_view/paths.rb
  • M actionpack/lib/action_view/template/error.rb
  • M actionpack/lib/action_view/template/handler.rb
  • M actionpack/lib/action_view/template/handlers.rb
  • M actionpack/lib/action_view/template/handlers/builder.rb
  • M actionpack/lib/action_view/template/handlers/erb.rb
  • M actionpack/lib/action_view/template/handlers/rjs.rb
  • M actionpack/lib/action_view/template/resolver.rb
  • M actionpack/lib/action_view/template/text.rb
  • M actionpack/lib/action_view/test_case.rb
  • M actionpack/test/abstract/layouts_test.rb
  • M actionpack/test/abstract/render_test.rb
  • M actionpack/test/controller/helper_test.rb
  • M actionpack/test/controller/layout_test.rb
  • M actionpack/test/template/render_test.rb
  • M activemodel/lib/active_model.rb
  • M activemodel/test/cases/helper.rb
  • M activemodel/test/cases/tests_database.rb
  • M activerecord/lib/active_record.rb
  • M activeresource/lib/active_resource.rb
  • M activeresource/test/abstract_unit.rb
  • M activeresource/test/cases/base_test.rb
  • M activesupport/lib/active_support/autoload.rb
  • M activesupport/lib/active_support/testing/performance.rb
  • M railties/lib/rails/console_app.rb
  • M railties/lib/rails/test_help.rb
  • M railties/test/rails_info_controller_test.rb