diff options
author | José Valim <jose.valim@gmail.com> | 2012-03-07 15:02:58 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-03-07 15:03:08 +0100 |
commit | e7560bc787545e09ad10b474fb1b46365f6fc3f1 (patch) | |
tree | a0021e02d6abea619248e4a3b56711b5162b4e0c /actionpack | |
parent | bcea8cd6d62f73cebc88256f7f54430c16f1b89d (diff) | |
download | rails-e7560bc787545e09ad10b474fb1b46365f6fc3f1.tar.gz rails-e7560bc787545e09ad10b474fb1b46365f6fc3f1.tar.bz2 rails-e7560bc787545e09ad10b474fb1b46365f6fc3f1.zip |
Set the rendered_format on respond_to.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/metal/mime_responds.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/mime_responds.rb b/actionpack/lib/action_controller/metal/mime_responds.rb index 73781756c8..9b567d950f 100644 --- a/actionpack/lib/action_controller/metal/mime_responds.rb +++ b/actionpack/lib/action_controller/metal/mime_responds.rb @@ -273,6 +273,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 |