diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-20 20:05:26 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-20 20:05:26 -0600 |
commit | 29c8a43056f40759a8c64cbcbd4e71d4283b233d (patch) | |
tree | e5797a3fbcd299c10ec788eb3bedd9801128a096 /actionpack/lib/action_controller/metal/rack_convenience.rb | |
parent | 0f8a5c7954bfc134f46eeb72c4cc8744825cbb5a (diff) | |
download | rails-29c8a43056f40759a8c64cbcbd4e71d4283b233d.tar.gz rails-29c8a43056f40759a8c64cbcbd4e71d4283b233d.tar.bz2 rails-29c8a43056f40759a8c64cbcbd4e71d4283b233d.zip |
Rename RackConvenience => RackDelegation
Diffstat (limited to 'actionpack/lib/action_controller/metal/rack_convenience.rb')
-rw-r--r-- | actionpack/lib/action_controller/metal/rack_convenience.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/actionpack/lib/action_controller/metal/rack_convenience.rb b/actionpack/lib/action_controller/metal/rack_convenience.rb deleted file mode 100644 index f0837c10e8..0000000000 --- a/actionpack/lib/action_controller/metal/rack_convenience.rb +++ /dev/null @@ -1,28 +0,0 @@ -module ActionController - module RackConvenience - extend ActiveSupport::Concern - - included do - delegate :session, :reset_session, :to => "@_request" - delegate :headers, :status=, :location=, :content_type=, - :status, :location, :content_type, :to => "@_response" - attr_internal :request - end - - def dispatch(action, env) - @_request = ActionDispatch::Request.new(env) - @_response = ActionDispatch::Response.new - @_response.request = request - super - end - - def params - @_params ||= @_request.parameters - end - - def response_body=(body) - response.body = body if response - super - end - end -end |