Sha256: 400106f7e93a6fbea1215e0fbff1b74a65b67014ae9a93de8db891f947541a7e
Contents?: true
Size: 409 Bytes
Versions: 4
Compression:
Stored size: 409 Bytes
Contents
module ActionView::Helpers::JavaScriptHelper def p_javascript_tag(content_or_options_with_block = nil, html_options = {}, &block) content = if block_given? html_options = content_or_options_with_block if content_or_options_with_block.is_a?(Hash) capture(&block) else content_or_options_with_block end content_tag(:script, content.html_safe, html_options) end end
Version data entries
4 entries across 4 versions & 1 rubygems