diff options
author | Konstantin Wlasow <mrwlasow@gmail.com> | 2014-01-04 16:18:16 +0600 |
---|---|---|
committer | Konstantin Wlasow <mrwlasow@gmail.com> | 2014-01-04 16:18:16 +0600 |
commit | 9882ec4a50eb64d1024740bbd3ebc4cf31b8e0d3 (patch) | |
tree | d1854f2358de2e4fbedb848cfab430a22bfa2e0d /actionview | |
parent | 27bcec28bfb7272aa2cbe107c10bdafd5ebc32c9 (diff) | |
download | rails-9882ec4a50eb64d1024740bbd3ebc4cf31b8e0d3.tar.gz rails-9882ec4a50eb64d1024740bbd3ebc4cf31b8e0d3.tar.bz2 rails-9882ec4a50eb64d1024740bbd3ebc4cf31b8e0d3.zip |
Fixed documentation. [ci skip]
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/helpers/text_helper.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionview/lib/action_view/helpers/text_helper.rb b/actionview/lib/action_view/helpers/text_helper.rb index 9943e19714..7cfbca5b6f 100644 --- a/actionview/lib/action_view/helpers/text_helper.rb +++ b/actionview/lib/action_view/helpers/text_helper.rb @@ -82,6 +82,9 @@ module ActionView # # => "And they f... (continued)" # # truncate("<p>Once upon a time in a world far far away</p>") + # # => "<p>Once upon a time in a wo..." + # + # truncate("<p>Once upon a time in a world far far away</p>", escape: false) # # => "<p>Once upon a time in a wo..." # # truncate("Once upon a time in a world far far away") { link_to "Continue", "#" } |