aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-06-10 18:19:25 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-06-10 18:19:25 -0300
commit57dba02817eb28550604853ce0f6a454b6be1780 (patch)
tree04536407e0df9a687396c8f2e423f0a265561ba5 /actionview
parent042f185ccb6fbd9bc7503d7104623ce34e4d6751 (diff)
parent9505a21f425e37e54426120849e3ca2a494cc7b0 (diff)
downloadrails-57dba02817eb28550604853ce0f6a454b6be1780.tar.gz
rails-57dba02817eb28550604853ce0f6a454b6be1780.tar.bz2
rails-57dba02817eb28550604853ce0f6a454b6be1780.zip
Merge pull request #15619 from aditya-kapoor/fix-js-doc
[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.