Please sign in to comment.
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.
- Loading branch information...
Showing with 22 additions and 2 deletions.
|@@ -0,0 +1 @@|
|+<%= "partial.html.erb" %>|