From bd6b61be88dfe6eb1ff1dcc5c17542d804a842c7 Mon Sep 17 00:00:00 2001 From: Yehuda Katz Date: Thu, 6 Aug 2009 19:52:11 -0300 Subject: Rename /base to /metal and make base.rb and metal.rb top-level to reflect their module locations --- .../lib/action_controller/base/rack_convenience.rb | 33 ---------------------- 1 file changed, 33 deletions(-) delete mode 100644 actionpack/lib/action_controller/base/rack_convenience.rb (limited to 'actionpack/lib/action_controller/base/rack_convenience.rb') diff --git a/actionpack/lib/action_controller/base/rack_convenience.rb b/actionpack/lib/action_controller/base/rack_convenience.rb deleted file mode 100644 index 805157b0e3..0000000000 --- a/actionpack/lib/action_controller/base/rack_convenience.rb +++ /dev/null @@ -1,33 +0,0 @@ -module ActionController - module RackConvenience - extend ActiveSupport::Concern - - included do - delegate :headers, :status=, :location=, :content_type=, - :status, :location, :content_type, :to => "@_response" - attr_internal :request, :response - end - - def call(name, env) - @_request = ActionDispatch::Request.new(env) - @_response = ActionDispatch::Response.new - @_response.request = request - super - end - - def params - @_params ||= @_request.parameters - end - - # :api: private - def to_rack - @_response.prepare! - @_response.to_a - end - - def response_body=(body) - response.body = body if response - super - end - end -end -- cgit v1.2.3