From 76c72d8f116dd49a6b260894a20cbfaac4ee37e4 Mon Sep 17 00:00:00 2001 From: Gregor Schmidt Date: Sat, 14 May 2011 00:19:53 +0200 Subject: [PATCH] [#414] remove returning which will be removed in future versions of Rails --- app/helpers/journals_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/journals_helper.rb b/app/helpers/journals_helper.rb index 10785fe6..7519ed36 100644 --- a/app/helpers/journals_helper.rb +++ b/app/helpers/journals_helper.rb @@ -75,7 +75,7 @@ module JournalsHelper end unless journal.notes.blank? - links = returning [] do |l| + links = [].tap do |l| if reply_links l << link_to_remote(image_tag('comment.png'), :title => l(:button_quote), :url => {:controller => controller, :action => action, :id => model, :journal_id => journal})