1
0
Fork 0
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:
José Valim 2012-03-07 15:02:58 +01:00
parent bbdb54ad15
commit 7638004d7d

View file

@ -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