diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-04-06 06:07:13 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-04-06 06:07:13 +0000 |
commit | e964135b625a27652bba6ef523c4cc0c9d4ffbd6 (patch) | |
tree | 68aedb7f3bc8cb4b5cdc0fee9be2fcef3bf54097 /app | |
parent | 8828c0f13e5ad1a434831ca611cd008b0c674aa2 (diff) | |
download | redmine-e964135b625a27652bba6ef523c4cc0c9d4ffbd6.tar.gz redmine-e964135b625a27652bba6ef523c4cc0c9d4ffbd6.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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), |