Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

rake refresh set incorrect content_type #213

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

rake refresh set incorrect content_type #213

sbfaulkner opened this issue Jun 4, 2010 · 3 comments
Labels

Comments

@sbfaulkner
Copy link

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.

@sbfaulkner
Copy link
Author

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)

@sikachu
Copy link
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
Copy link
Contributor

sikachu commented Jun 30, 2011

This has been merged. Thank you very much.

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

No branches or pull requests

2 participants