blob: 598ebd4d829ed718e237c72678517ff0c6928d85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class MergeRequestDiffFile < ActiveRecord::Base
include Gitlab::EncodingHelper
belongs_to :merge_request_diff
def utf8_diff
return '' if diff.blank?
encode_utf8(diff) if diff.respond_to?(:encoding)
end
end
|