mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
use_accept_header is no longer supported
This commit is contained in:
parent
a03a3b7c31
commit
7d5b097357
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ module ActionDispatch
|
|||
#
|
||||
# GET /posts/5.xml | request.format => Mime::XML
|
||||
# GET /posts/5.xhtml | request.format => Mime::HTML
|
||||
# GET /posts/5 | request.format => Mime::HTML or MIME::JS, or request.accepts.first depending on the value of <tt>ActionController::Base.use_accept_header</tt>
|
||||
# GET /posts/5 | request.format => Mime::HTML or MIME::JS, or request.accepts.first
|
||||
#
|
||||
def format(view_path = [])
|
||||
formats.first
|
||||
|
|
Loading…
Reference in a new issue