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 [96650f704a7a36097d634972484a305a639143c7] by Collin Miller

Revision 96650f704a7a36097d634972484a305a639143c7, committed by Collin Miller · September 12th, 2010 @ 12:35 AM

added block arguments to ActionController::Metal#use

Useful for cases such as warden, where a block configuration is taken.

class SomeController < ApplicationController
  use RailsWarden::Manager do |manager|
    manager.default_strategies :facebook_oauth
    manager.failure_app = SomeController.action(:authorize)
  end
end

http://github.com/rails/rails/commit/96650f704a7a36097d634972484a30...

3 changed files

  • M actionpack/lib/action_controller/metal.rb
  • M actionpack/test/controller/new_base/middleware_test.rb
  • M actionpack/test/dispatch/middleware_stack_test.rb