Defect #10602 » except-class.patch
app/helpers/application_helper.rb | ||
---|---|---|
99 | 99 |
action = options.delete(:download) ? 'download' : 'show' |
100 | 100 |
link_to(h(text), |
101 | 101 |
{:controller => 'attachments', :action => action, |
102 |
:id => attachment, :filename => attachment.filename }.merge(options), |
|
102 |
:id => attachment, :filename => attachment.filename }.merge(options.except(:class)),
|
|
103 | 103 |
options) |
104 | 104 |
end |
105 | 105 |