diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-07 16:17:22 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-07 16:17:22 -0700 |
commit | 1f80f3a3738a57be6e36901ef60645fabb6576a9 (patch) | |
tree | 514fcce434e1309aed4fda332c889fea0803d5d7 /actionpack/lib/action_controller | |
parent | 81cfdf2489fe436bb70e0e44c5683c57d0247850 (diff) | |
download | rails-1f80f3a3738a57be6e36901ef60645fabb6576a9.tar.gz rails-1f80f3a3738a57be6e36901ef60645fabb6576a9.tar.bz2 rails-1f80f3a3738a57be6e36901ef60645fabb6576a9.zip |
remove vestigial code
Looks like this was left over from converting Rails to Rack. I think
it's safe to remove now.
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/middleware.rb | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/actionpack/lib/action_controller/middleware.rb b/actionpack/lib/action_controller/middleware.rb deleted file mode 100644 index 437fec3dc6..0000000000 --- a/actionpack/lib/action_controller/middleware.rb +++ /dev/null @@ -1,39 +0,0 @@ -module ActionController - class Middleware < Metal - class ActionMiddleware - def initialize(controller, app) - @controller, @app = controller, app - end - - def call(env) - request = ActionDispatch::Request.new(env) - @controller.build(@app).dispatch(:index, request) - end - end - - class << self - alias build new - - def new(app) - ActionMiddleware.new(self, app) - end - end - - attr_internal :app - - def process(action) - response = super - self.status, self.headers, self.response_body = response if response.is_a?(Array) - response - end - - def initialize(app) - super() - @_app = app - end - - def index - call(env) - end - end -end
\ No newline at end of file |