]> source.dussan.org Git - redmine.git/commitdiff
delete :only_path option from link_to options at application_helper link_to_attachmen...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 6 Apr 2012 06:07:13 +0000 (06:07 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 6 Apr 2012 06:07:13 +0000 (06:07 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9328 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index de252a864d51291eebad59ac78d33012b33bc227..0e12d51ee30c0751965775de159e20786798b1b2 100644 (file)
@@ -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),