aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorAditya Kapoor <aditya.kapoor@vinsol.com>2014-06-11 01:29:17 +0530
committerAditya Kapoor <aditya.kapoor@vinsol.com>2014-06-11 01:29:17 +0530
commit9505a21f425e37e54426120849e3ca2a494cc7b0 (patch)
treee8d3d2300c066b09eb71f475e44fc0b95ce0db70 /actionview
parent3c60da761bb982a1044b7c55f8b80ae3cd2e7fb7 (diff)
downloadrails-9505a21f425e37e54426120849e3ca2a494cc7b0.tar.gz
rails-9505a21f425e37e54426120849e3ca2a494cc7b0.tar.bz2
rails-9505a21f425e37e54426120849e3ca2a494cc7b0.zip
[ci skip] Fix doc for javascript_helper
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/helpers/javascript_helper.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/javascript_helper.rb b/actionview/lib/action_view/helpers/javascript_helper.rb
index e475d5b018..629c447f3f 100644
--- a/actionview/lib/action_view/helpers/javascript_helper.rb
+++ b/actionview/lib/action_view/helpers/javascript_helper.rb
@@ -47,7 +47,13 @@ module ActionView
# tag.
#
# javascript_tag "alert('All is good')", defer: 'defer'
- # # => <script defer="defer">alert('All is good')</script>
+ #
+ # Returns:
+ # <script defer="defer">
+ # //<![CDATA[
+ # alert('All is good')
+ # //]]>
+ # </script>
#
# Instead of passing the content as an argument, you can also use a block
# in which case, you pass your +html_options+ as the first parameter.