Skip to content

Commit 3137181

Browse files
committed
Action View Caching code sample syntax [ci skip]
The code sample for the Action View `cache` helper method mixed Ruby syntax with prose. This commit introduces `#` comment characters to separate the English from the Ruby.
1 parent adf0c73 commit 3137181

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

actionview/lib/action_view/helpers/cache_helper.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ class UncacheableFragmentError < StandardError; end
7676
# render 'comments/comments'
7777
# render('comments/comments')
7878
#
79-
# render "header" translates to render("comments/header")
79+
# render "header" # translates to render("comments/header")
8080
#
81-
# render(@topic) translates to render("topics/topic")
82-
# render(topics) translates to render("topics/topic")
83-
# render(message.topics) translates to render("topics/topic")
81+
# render(@topic) # translates to render("topics/topic")
82+
# render(topics) # translates to render("topics/topic")
83+
# render(message.topics) # translates to render("topics/topic")
8484
#
8585
# It's not possible to derive all render calls like that, though.
8686
# Here are a few examples of things that can't be derived:

0 commit comments

Comments
 (0)