diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-10 18:19:25 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-10 18:19:25 -0300 |
commit | 57dba02817eb28550604853ce0f6a454b6be1780 (patch) | |
tree | 04536407e0df9a687396c8f2e423f0a265561ba5 /actionview | |
parent | 042f185ccb6fbd9bc7503d7104623ce34e4d6751 (diff) | |
parent | 9505a21f425e37e54426120849e3ca2a494cc7b0 (diff) | |
download | rails-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.rb | 8 |
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. |