Skip to content

Commit 125b77f

Browse files
Format example as code instead of ASCII table [ci-skip]
1 parent 9a10a82 commit 125b77f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

actionpack/lib/action_dispatch/http/mime_negotiation.rb

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,14 @@ def accepts
5656

5757
# Returns the MIME type for the format used in the request.
5858
#
59-
# GET /posts/5.xml | request.format => Mime[:xml]
60-
# GET /posts/5.xhtml | request.format => Mime[:html]
61-
# GET /posts/5 | request.format => Mime[:html] or Mime[:js], or request.accepts.first
59+
# # GET /posts/5.xml
60+
# request.format # => Mime[:xml]
61+
#
62+
# # GET /posts/5.xhtml
63+
# request.format # => Mime[:html]
64+
#
65+
# # GET /posts/5
66+
# request.format # => Mime[:html] or Mime[:js], or request.accepts.first
6267
#
6368
def format(_view_path = nil)
6469
formats.first || Mime::NullType.instance

0 commit comments

Comments
 (0)