From: Toshi MARUYAMA Date: Fri, 6 Apr 2012 06:07:13 +0000 (+0000) Subject: delete :only_path option from link_to options at application_helper link_to_attachmen... X-Git-Tag: 1.4.0~39 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e964135b625a27652bba6ef523c4cc0c9d4ffbd6;p=redmine.git delete :only_path option from link_to options at application_helper link_to_attachment (#10602) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9328 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index de252a864..0e12d51ee 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -99,6 +99,7 @@ module ApplicationHelper action = options.delete(:download) ? 'download' : 'show' opt_only_path = {} opt_only_path[:only_path] = (options[:only_path] == false ? false : true) + options.delete(:only_path) link_to(h(text), {:controller => 'attachments', :action => action, :id => attachment, :filename => attachment.filename}.merge(opt_only_path),