Skip to content

Commit

Permalink
Merge pull request #19015 from antstorm/fix-cache-helper-erb-block-in…
Browse files Browse the repository at this point in the history
…-comment

Fix cache_helper comment ERB typo
  • Loading branch information
rafaelfranca committed Feb 20, 2015
1 parent 93a6500 commit 26d91f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionview/lib/action_view/helpers/cache_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
# <b>All the topics on this project</b>
# <%= render project.topics %>
# <% end %>
Expand All @@ -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 %>
# <b>All the topics on this project</b>
# <%= render project.topics %>
# <% end %>
Expand Down

0 comments on commit 26d91f1

Please sign in to comment.