aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/capture_helper.rb
diff options
context:
space:
mode:
authorAkira Matsuda & saya <ronnie@dio.jp>2016-01-08 17:19:36 +0900
committerAkira Matsuda <ronnie@dio.jp>2016-01-08 18:08:11 +0900
commit76c385709c873a7105e3a267d84c4e70417a15e2 (patch)
treed111571f1a34efba019097993b074123c943e93e /actionview/lib/action_view/helpers/capture_helper.rb
parent078d86b655c4e7c8a894102d0b599cca144fe767 (diff)
downloadrails-76c385709c873a7105e3a267d84c4e70417a15e2.tar.gz
rails-76c385709c873a7105e3a267d84c4e70417a15e2.tar.bz2
rails-76c385709c873a7105e3a267d84c4e70417a15e2.zip
[doc] The capture method isn't always used inside views to create a variable
but rather very often used inside helpers to directly return a String value. [ci skip]
Diffstat (limited to 'actionview/lib/action_view/helpers/capture_helper.rb')
-rw-r--r--actionview/lib/action_view/helpers/capture_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/capture_helper.rb b/actionview/lib/action_view/helpers/capture_helper.rb
index 93c7cba395..df8d0affd0 100644
--- a/actionview/lib/action_view/helpers/capture_helper.rb
+++ b/actionview/lib/action_view/helpers/capture_helper.rb
@@ -9,8 +9,8 @@ module ActionView
# It provides a method to capture blocks into variables through capture and
# a way to capture a block of markup for use in a layout through content_for.
module CaptureHelper
- # The capture method allows you to extract part of a template into a
- # variable. You can then use this variable anywhere in your templates or layout.
+ # The capture method extracts part of a template as a String object.
+ # You can then use this object anywhere in your templates, layout, or helpers.
#
# The capture method can be used in ERB templates...
#