Permalink
Browse files

[ci skip] Fix doc for javascript_helper

  • Loading branch information...
1 parent 3c60da7 commit 9505a21f425e37e54426120849e3ca2a494cc7b0 @aditya-kapoor aditya-kapoor committed Jun 10, 2014
Showing with 7 additions and 1 deletion.
  1. +7 −1 actionview/lib/action_view/helpers/javascript_helper.rb
@@ -47,7 +47,13 @@ def escape_javascript(javascript)
# 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.

0 comments on commit 9505a21

Please sign in to comment.