Skip to content

Commit

Permalink
Merge pull request #34944 from dasch/patch-7
Browse files Browse the repository at this point in the history
Document that `format.any` can match all formats
  • Loading branch information
rafaelfranca committed Jan 16, 2019
2 parents cf276b3 + f19b60b commit ade479f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions actionpack/lib/action_controller/metal/mime_responds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ module MimeResponds
#
# render json: @people
#
# +any+ can also be used with no arguments, in which case it will be used for any format requested by
# the user:
#
# respond_to do |format|
# format.html
# format.any { redirect_to support_path }
# end
#
# Formats can have different variants.
#
# The request variant is a specialization of the request format, like <tt>:tablet</tt>,
Expand Down

0 comments on commit ade479f

Please sign in to comment.