summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-11-20 00:10:18 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-11-20 00:10:18 +0000
commit5eb388b851f7b56d343023cb52c46ca80a364cce (patch)
treed9c9c707b983107c746e8e82357ad485e363b16b /app/helpers
parent66d6d611baadb17326f144b350105043b9a9d466 (diff)
downloadredmine-5eb388b851f7b56d343023cb52c46ca80a364cce.tar.gz
redmine-5eb388b851f7b56d343023cb52c46ca80a364cce.zip
code layout clean up link_to_attachment of application helper
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7856 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index aa37ff377..f4ebce99f 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -97,8 +97,10 @@ module ApplicationHelper
def link_to_attachment(attachment, options={})
text = options.delete(:text) || attachment.filename
action = options.delete(:download) ? 'download' : 'show'
-
- link_to(h(text), {:controller => 'attachments', :action => action, :id => attachment, :filename => attachment.filename }, options)
+ link_to(h(text),
+ {:controller => 'attachments', :action => action,
+ :id => attachment, :filename => attachment.filename },
+ options)
end
# Generates a link to a SCM revision