From 5eb388b851f7b56d343023cb52c46ca80a364cce Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 20 Nov 2011 00:10:18 +0000 Subject: [PATCH] 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 --- app/helpers/application_helper.rb | 6 ++++-- 1 file 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 -- 2.39.5