This project is archived and is in readonly mode.

Changeset [91693ddfe4ce34cf0d13233130c944f4ff5fe28a] 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...

Committed by Mikel Lindsaar

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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>