Skip to content

Commit

Permalink
push response creation down since third param is never used.
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jul 2, 2012
1 parent a5e4796 commit b8a5bb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionpack/lib/action_controller/metal/rack_delegation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ module RackDelegation
delegate :headers, :status=, :location=, :content_type=,
:status, :location, :content_type, :to => "@_response"

def dispatch(action, request, response = ActionDispatch::Response.new)
@_response ||= response
@_response.request ||= request
def dispatch(action, request)
@_response = ActionDispatch::Response.new
@_response.request = request
super(action, request)
end

Expand Down

0 comments on commit b8a5bb2

Please sign in to comment.