We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e69dbf commit c06c2a7Copy full SHA for c06c2a7
app/models/attachment.rb
@@ -3,8 +3,7 @@ class Attachment < ApplicationRecord
3
has_many :patch_files, dependent: :destroy
4
5
def patch?
6
- content_type&.include?('text') &&
7
- (file_name&.ends_with?('.patch') || file_name&.ends_with?('.diff') || patch_content?)
+ file_name&.ends_with?('.patch') || file_name&.ends_with?('.diff') || patch_content?
8
end
9
10
def decoded_body
0 commit comments