@@ -99,6 +99,7 module ApplicationHelper | |||||
99 | action = options.delete(:download) ? 'download' : 'show' |
|
99 | action = options.delete(:download) ? 'download' : 'show' | |
100 | opt_only_path = {} |
|
100 | opt_only_path = {} | |
101 | opt_only_path[:only_path] = (options[:only_path] == false ? false : true) |
|
101 | opt_only_path[:only_path] = (options[:only_path] == false ? false : true) | |
|
102 | options.delete(:only_path) | |||
102 | link_to(h(text), |
|
103 | link_to(h(text), | |
103 | {:controller => 'attachments', :action => action, |
|
104 | {:controller => 'attachments', :action => action, | |
104 | :id => attachment, :filename => attachment.filename}.merge(opt_only_path), |
|
105 | :id => attachment, :filename => attachment.filename}.merge(opt_only_path), |
General Comments 0
You need to be logged in to leave comments.
Login now