diff options
author | Collin Miller <collintmiller@gmail.com> | 2010-09-12 05:30:21 +0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-09-12 07:35:54 +0800 |
commit | 96650f704a7a36097d634972484a305a639143c7 (patch) | |
tree | bcb08700c195984bb0e7a882bf42da8dcbc9588d /actionpack/lib/action_dispatch/http | |
parent | 0aa66f04e4b4698718023cacb18612e04a4c5eb1 (diff) | |
download | rails-96650f704a7a36097d634972484a305a639143c7.tar.gz rails-96650f704a7a36097d634972484a305a639143c7.tar.bz2 rails-96650f704a7a36097d634972484a305a639143c7.zip |
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
Diffstat (limited to 'actionpack/lib/action_dispatch/http')
0 files changed, 0 insertions, 0 deletions