Skip to content

Commit 9505a21

Browse files
author
Aditya Kapoor
committed
[ci skip] Fix doc for javascript_helper
1 parent 3c60da7 commit 9505a21

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

actionview/lib/action_view/helpers/javascript_helper.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,13 @@ def escape_javascript(javascript)
4747
# tag.
4848
#
4949
# javascript_tag "alert('All is good')", defer: 'defer'
50-
# # => <script defer="defer">alert('All is good')</script>
50+
#
51+
# Returns:
52+
# <script defer="defer">
53+
# //<![CDATA[
54+
# alert('All is good')
55+
# //]]>
56+
# </script>
5157
#
5258
# Instead of passing the content as an argument, you can also use a block
5359
# in which case, you pass your +html_options+ as the first parameter.

0 commit comments

Comments
 (0)