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 [91693ddfe4ce34cf0d13233130c944f4ff5fe28a] by Mikel Lindsaar

Revision 91693ddfe4ce34cf0d13233130c944f4ff5fe28a, committed by Mikel Lindsaar · September 12th, 2010 @ 02:47 AM

Backport of: added block arguments to ActionController::Metal#use

Commit: f0dbcc7a692bc375e3e52a9661af4037392ee52f
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/91693ddfe4ce34cf0d13233130c944...

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