Skip to content
Browse files

Set the rendered_format on respond_to.

  • Loading branch information...
1 parent bbdb54a commit 7638004d7d23df668ec33a3c570b7865e0d06a06 @josevalim josevalim committed Mar 7, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/action_controller/metal/mime_responds.rb
View
1 actionpack/lib/action_controller/metal/mime_responds.rb
@@ -271,6 +271,7 @@ def retrieve_collector_from_mimes(mimes=nil, &block) #: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

0 comments on commit 7638004

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