We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a8d2de commit 4e7620bCopy full SHA for 4e7620b
actionpack/lib/action_dispatch/http/mime_negotiation.rb
@@ -72,7 +72,7 @@ def accepts
72
# GET /posts/5.xhtml | request.format => Mime[:html]
73
# GET /posts/5 | request.format => Mime[:html] or Mime[:js], or request.accepts.first
74
#
75
- def format(view_path = [])
+ def format(_view_path = nil)
76
formats.first || Mime::NullType.instance
77
end
78
0 commit comments