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

Already on GitHub? Sign in to your account

rake refresh set incorrect content_type #213

Closed
sbfaulkner opened this Issue Jun 4, 2010 · 3 comments

Comments

Projects
None yet
2 participants
Contributor

sbfaulkner commented Jun 4, 2010

When the content_type of the default style is different from the original, a rake refresh incorrectly changes the content_type to that of the default style.

Contributor

sbfaulkner commented Jun 4, 2010

Changing the refresh:metadata task to pass the :original style to to_file fixes this.

The fix is in my fork:
http://github.com/sbfaulkner/paperclip/commit/341fe6cef71e94868a4502519b15c8bd8a8ad7fa

(not sure how to write a test for it)

Contributor

sikachu commented Jun 23, 2011

Yes, I can see a problem when your default style is not :original. I think we should fix it according to your way.

@sikachu sikachu closed this in 791b70d Jun 30, 2011

Contributor

sikachu commented Jun 30, 2011

This has been merged. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment