Permalink
Browse files

Redirector had an undeclared dependency on Logger.

  • Loading branch information...
1 parent a21aaca commit 303f9b8841b1f12ddd7bbc9c6b2e010eafd8e551 Yehuda Katz + Carl Lerche committed Aug 26, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 actionpack/lib/action_controller/metal/redirector.rb
@@ -8,6 +8,9 @@ def initialize(message = nil)
end
module Redirector
+ extend ActiveSupport::Concern
+ include AbstractController::Logger
+
def redirect_to(url, status) #:doc:
raise AbstractController::DoubleRenderError if response_body
logger.info("Redirected to #{url}") if logger && logger.info?

0 comments on commit 303f9b8

Please sign in to comment.