Skip to content
This repository
Browse code

Set the rendered_format on respond_to.

  • Loading branch information...
commit e7560bc787545e09ad10b474fb1b46365f6fc3f1 1 parent bcea8cd
José Valim josevalim authored
1  actionpack/lib/action_controller/metal/mime_responds.rb
@@ -273,6 +273,7 @@ def retrieve_collector_from_mimes(mimes=nil, &block) #:nodoc:
273 273 if format
274 274 self.content_type ||= format.to_s
275 275 lookup_context.formats = [format.to_sym]
  276 + lookup_context.rendered_format = lookup_context.formats.first
276 277 collector
277 278 else
278 279 head :not_acceptable

3 comments on commit e7560bc

Aaron Patterson
Owner

Y U NO ADD TEST? :flushed:

José Valim
Owner

A test was pushed later iirc.

Aaron Patterson
Owner

:heart:

Please sign in to comment.
Something went wrong with that request. Please try again.