From 0a32e898f1ce39163ab60be56cf68ffad9a191b3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 14 Apr 2015 16:59:04 +0000 Subject: Generate tag once per request. git-svn-id: http://svn.redmine.org/redmine/trunk@14178 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 7fdb49c07..3f607b8cf 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1117,7 +1117,7 @@ module ApplicationHelper def checked_image(checked=true) if checked - image_tag 'toggle_check.png' + @checked_image_tag ||= image_tag('toggle_check.png') end end -- cgit v1.2.3