mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
67b2404cf9
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. |
||
---|---|---|
.. | ||
abstract | ||
activerecord | ||
assertions | ||
controller | ||
dispatch | ||
fixtures | ||
lib/controller | ||
routing | ||
template | ||
tmp | ||
abstract_unit.rb | ||
active_record_unit.rb | ||
ts_isolated.rb |