rails/actionpack/lib/action_controller/new_base/session.rb
Yehuda Katz 6bbe965ccd Reduce the cost of using ActionController::Http significantly by:
* Removing the dependency on AD::Request and AD::Response
  * Moving the logic for the request and response object
    into a new module that is included by default.
  * Changing Renderer and Redirector to use self.headers,
    self.content_type, and self.status, which have very basic
    default implementations on AC::Http. When RackConvenience
    is included (which it is by default on AC::Base), the full
    Request/Response logic is used instead of the simple logic.
2009-05-27 10:40:43 +02:00

16 lines
236 B
Ruby

module ActionController
module Session
extend ActiveSupport::DependencyModule
depends_on RackConvenience
def session
@_request.session
end
def reset_session
@_request.reset_session
end
end
end