Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rendered format for render partial #5603

Merged

Conversation

drogus
Copy link
Member

@drogus drogus commented Mar 27, 2012

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.
josevalim added a commit that referenced this pull request Mar 27, 2012
…artial

Fix rendered format for render partial
@josevalim josevalim merged commit e31ec47 into rails:3-2-stable Mar 27, 2012
@josevalim
Copy link
Contributor

Can you send a PR for master pls?

@drogus
Copy link
Member Author

drogus commented Mar 27, 2012

@josevalim I will just commit, I've sent a pull request because I was not sure if this is correct and needed some feedback :)

@josevalim
Copy link
Contributor

Dobry pies!

@drogus
Copy link
Member Author

drogus commented Mar 27, 2012

lol :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants