Last active
December 19, 2015 12:59
-
-
Save hathawad/5959245 to your computer and use it in GitHub Desktop.
Paperclip Override for Jruby 1.7.4 Windows Issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#place this overide in a rails initailizer as a workaround | |
module Paperclip | |
class ContentTypeDetector | |
def type_from_file_command | |
type = SENSIBLE_DEFAULT | |
type.split(/[:;\s]+/)[0] | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@hathawad have you confirmed this is fixed on master for 1.7.5 yet? We did change the logic of this so that we no longer have the current thread issue. I just want to make sure so we can make sure this is addressed for 1.7.5.