aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal
diff options
context:
space:
mode:
authorYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-08-25 12:14:31 -0700
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-08-25 12:14:31 -0700
commitc7ba911a43e513bd1adbee93f16d2b8efea7cc88 (patch)
tree0a3f88da172575fb9d85980975cbbe41ed6bd53c /actionpack/lib/action_controller/metal
parent09fde6440a729e169e51c04f7caf0d19fe949c1d (diff)
downloadrails-c7ba911a43e513bd1adbee93f16d2b8efea7cc88.tar.gz
rails-c7ba911a43e513bd1adbee93f16d2b8efea7cc88.tar.bz2
rails-c7ba911a43e513bd1adbee93f16d2b8efea7cc88.zip
ActionController::Metal can be a middleware
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r--actionpack/lib/action_controller/metal/rack_convenience.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/actionpack/lib/action_controller/metal/rack_convenience.rb b/actionpack/lib/action_controller/metal/rack_convenience.rb
index 5fac445dab..a80569c530 100644
--- a/actionpack/lib/action_controller/metal/rack_convenience.rb
+++ b/actionpack/lib/action_controller/metal/rack_convenience.rb
@@ -5,7 +5,7 @@ module ActionController
included do
delegate :headers, :status=, :location=, :content_type=,
:status, :location, :content_type, :to => "@_response"
- attr_internal :request, :response
+ attr_internal :request
end
def call(name, env)
@@ -19,12 +19,6 @@ module ActionController
@_params ||= @_request.parameters
end
- # :api: private
- def to_a
- @_response.prepare!
- @_response.to_a
- end
-
def response_body=(body)
response.body = body if response
super