Skip to content

Commit

Permalink
Merge pull request #48380 from mdh/add-request-session-documentation
Browse files Browse the repository at this point in the history
Add missing docs for request.session
  • Loading branch information
p8 committed Jun 2, 2023
2 parents 254f1d8 + 39156c8 commit 5824fd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions actionpack/lib/action_controller/metal.rb
Expand Up @@ -169,6 +169,10 @@ def controller_name
# The ActionDispatch::Response instance for the current response.
attr_internal_reader :response

##
# The ActionDispatch::Request::Session instance for the current request.
# See further details in the
# {Active Controller Session guide}[https://guides.rubyonrails.org/action_controller_overview.html#session].
delegate :session, to: "@_request"

##
Expand Down

0 comments on commit 5824fd9

Please sign in to comment.