diff options
author | Santosh Wadghule <santosh.wadghule@gmail.com> | 2016-07-21 13:10:35 +0530 |
---|---|---|
committer | Santosh Wadghule <santosh.wadghule@gmail.com> | 2016-07-23 09:56:35 +0530 |
commit | 8ad6260538aa211a90834df18a74f59f63e67bca (patch) | |
tree | 893223de3cd55cc0e87842a95451984590ad9d5e /actionview | |
parent | cf5bc0dd5359e61dcb93e719279c7198e68a0eb8 (diff) | |
download | rails-8ad6260538aa211a90834df18a74f59f63e67bca.tar.gz rails-8ad6260538aa211a90834df18a74f59f63e67bca.tar.bz2 rails-8ad6260538aa211a90834df18a74f59f63e67bca.zip |
Explain meaning of the code very well and Remove confusion. [ci skip]
Code like `render(topics) => render("topics/topic")` adds confusion
for the readers. On first impression, that code feels like hash kind
of data, but it's not. So make it more clear and meaningful.
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/helpers/cache_helper.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionview/lib/action_view/helpers/cache_helper.rb b/actionview/lib/action_view/helpers/cache_helper.rb index e28b02f015..6c3092cc46 100644 --- a/actionview/lib/action_view/helpers/cache_helper.rb +++ b/actionview/lib/action_view/helpers/cache_helper.rb @@ -69,11 +69,11 @@ module ActionView # render 'comments/comments' # render('comments/comments') # - # render "header" => render("comments/header") + # render "header" translates to render("comments/header") # - # render(@topic) => render("topics/topic") - # render(topics) => render("topics/topic") - # render(message.topics) => render("topics/topic") + # render(@topic) translates to render("topics/topic") + # render(topics) translates to render("topics/topic") + # render(message.topics) translates to render("topics/topic") # # It's not possible to derive all render calls like that, though. # Here are a few examples of things that can't be derived: |