1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Document ActionController::Cookies#cookies [ci-skip]

There are several `cookies` methods that appear when searching the API
documentation, but none of them are the method commonly used in
controllers.

This makes Action Controller's `cookies` method appear in the search
results, and makes the accompanying `ActionDispatch::Cookies`
documentation more discoverable.
This commit is contained in:
Jonathan Hefner 2020-11-09 16:38:42 -06:00
parent bcb63fcaa8
commit 2e53730d62

View file

@ -9,7 +9,9 @@ module ActionController #:nodoc:
end
private
def cookies
# The cookies for the current request. See ActionDispatch::Cookies for
# more information.
def cookies # :doc:
request.cookie_jar
end
end