summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-04-14 16:59:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-04-14 16:59:04 +0000
commit0a32e898f1ce39163ab60be56cf68ffad9a191b3 (patch)
tree3cb7b624456dd6b3993cfaee43e067ded4ea0ba6 /app
parentb4a8adc1474b4104856fdf2e92b5ca2ebb20b37c (diff)
downloadredmine-0a32e898f1ce39163ab60be56cf68ffad9a191b3.tar.gz
redmine-0a32e898f1ce39163ab60be56cf68ffad9a191b3.zip
Generate tag once per request.
git-svn-id: http://svn.redmine.org/redmine/trunk@14178 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
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