From e964135b625a27652bba6ef523c4cc0c9d4ffbd6 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 6 Apr 2012 06:07:13 +0000 Subject: [PATCH] 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 --- app/helpers/application_helper.rb | 1 + 1 file changed, 1 insertion(+) 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), -- 2.39.5