Conditions | 2 |
Total Lines | 6 |
Lines | 5 |
Ratio | 83.33 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | require 'mime' |
||
35 | View Code Duplication | def get_attachment_content_disposition(filename = nil) |
|
|
|||
36 | if filename.to_s.length > 0 |
||
37 | return "attachment; filename=\"#{filename}\"" |
||
38 | end |
||
39 | 'attachment' |
||
40 | end |
||
41 | end |
||
43 |