From 1f022710488aba694177bb4c33ad99f073eeabb2 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Wed, 14 Mar 2007 01:38:41 +0000 Subject: Deprecation: verification with :redirect_to => :named_route shouldn't be deprecated. Closes #7525. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/verification.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/verification.rb b/actionpack/lib/action_controller/verification.rb index 7cdf658437..131131a1d8 100644 --- a/actionpack/lib/action_controller/verification.rb +++ b/actionpack/lib/action_controller/verification.rb @@ -95,6 +95,7 @@ module ActionController #:nodoc: response.headers.update(options[:add_headers]) if options[:add_headers] unless performed? render(options[:render]) if options[:render] + options[:redirect_to] = self.send(options[:redirect_to]) if options[:redirect_to].is_a? Symbol redirect_to(options[:redirect_to]) if options[:redirect_to] end return false -- cgit v1.2.3