From 421865e4fd69841889ba1eb51af2e0bef98a8cb0 Mon Sep 17 00:00:00 2001 From: Anthony Dmitriyev Date: Fri, 20 Feb 2015 17:04:35 +0000 Subject: [PATCH] Fix cache_helper comment ERB --- actionview/lib/action_view/helpers/cache_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actionview/lib/action_view/helpers/cache_helper.rb b/actionview/lib/action_view/helpers/cache_helper.rb index 4db8930a26..9dadfb5ce1 100644 --- a/actionview/lib/action_view/helpers/cache_helper.rb +++ b/actionview/lib/action_view/helpers/cache_helper.rb @@ -122,7 +122,7 @@ def cache(name = {}, options = nil, &block) # Cache fragments of a view if +condition+ is true # - # <%= cache_if admin?, project do %> + # <% cache_if admin?, project do %> # All the topics on this project # <%= render project.topics %> # <% end %> @@ -138,7 +138,7 @@ def cache_if(condition, name = {}, options = nil, &block) # Cache fragments of a view unless +condition+ is true # - # <%= cache_unless admin?, project do %> + # <% cache_unless admin?, project do %> # All the topics on this project # <%= render project.topics %> # <% end %> -- GitLab