mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Set the rendered_format on respond_to.
This commit is contained in:
parent
bbdb54ad15
commit
7638004d7d
1 changed files with 1 additions and 0 deletions
|
@ -271,6 +271,7 @@ module ActionController #:nodoc:
|
|||
if format
|
||||
self.content_type ||= format.to_s
|
||||
lookup_context.formats = [format.to_sym]
|
||||
lookup_context.rendered_format = lookup_context.formats.first
|
||||
collector
|
||||
else
|
||||
head :not_acceptable
|
||||
|
|
Loading…
Reference in a new issue