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

Merge pull request #46050 from sreeram-venkitesh/actioncontroller-render-status-docs

Added `status` in API documentation for `ActionController::Renderer#render`
This commit is contained in:
Petrik de Heus 2022-09-16 18:08:21 +02:00 committed by GitHub
commit c5d8105e62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,6 +81,7 @@ module ActionController
# * <tt>:json</tt> - Renders the provided hash or object in JSON. You don't
# need to call <tt>.to_json</tt> on the object you want to render.
# * <tt>:body</tt> - Renders provided text and sets content type of <tt>text/plain</tt>.
# * <tt>:status</tt> - Specifies the HTTP status code to send with the response. Defaults to 200.
#
# If no <tt>options</tt> hash is passed or if <tt>:update</tt> is specified, then:
#