diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2012-03-26 22:37:36 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2012-03-27 05:33:47 +0200 |
commit | 449a4fc0957748bca3bddf6a15e4d2ae72e2898f (patch) | |
tree | 28e94d43197fa0e4f18368ad5d17f8b0820232c4 /activesupport/lib/active_support/multibyte | |
parent | 3eb5be67b14e347951eea2dd13cd6f4a8aaaa38c (diff) | |
download | rails-449a4fc0957748bca3bddf6a15e4d2ae72e2898f.tar.gz rails-449a4fc0957748bca3bddf6a15e4d2ae72e2898f.tar.bz2 rails-449a4fc0957748bca3bddf6a15e4d2ae72e2898f.zip |
If partial is rendered in controller, grab format from template
Previously `rendered_format` was set only based on mime types
passed in Accept header, which was wrong if first type from
Accept was different than rendered partial. The fix is to simply
move setting rendered_format to the place where template
is available and grab format from the template. If it fails
we can fallback to formats passed by Accept header.
Diffstat (limited to 'activesupport/lib/active_support/multibyte')
0 files changed, 0 insertions, 0 deletions