• Sean McGivern's avatar
    Fix saving diffs that are not valid UTF-8 · 396b8f91
    Sean McGivern authored
    Previously, we used Psych, which would:
    
    1. Check if a string was encoded as binary, and not ASCII-compatible.
    2. Add the !binary tag in that case.
    3. Convert to base64.
    
    We need to do the same thing, using a new column in place of the tag.
    396b8f91
merge_request_diff.rb 9.02 KB