Class: ActionView::Helpers::AssetTagHelper::JavascriptIncludeTag
- Inherits:
-
AssetIncludeTag
- Object
- AssetIncludeTag
- ActionView::Helpers::AssetTagHelper::JavascriptIncludeTag
- Defined in:
- lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb
Constant Summary
Constants included from TagHelper
Instance Attribute Summary
Attributes inherited from AssetIncludeTag
Instance Method Summary collapse
Methods inherited from AssetIncludeTag
#include_tag, inherited, #initialize
Methods included from TagHelper
#cdata_section, #content_tag, #escape_once, #tag
Methods included from CaptureHelper
#capture, #content_for, #content_for?, #flush_output_buffer, #provide, #with_output_buffer
Constructor Details
This class inherits a constructor from ActionView::Helpers::AssetTagHelper::AssetIncludeTag
Instance Method Details
#asset_name ⇒ Object
10 11 12 |
# File 'lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb', line 10 def asset_name 'javascript' end |
#asset_tag(source, options) ⇒ Object
18 19 20 |
# File 'lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb', line 18 def asset_tag(source, ) content_tag("script", "", { "type" => Mime::JS, "src" => path_to_asset(source) }.merge()) end |
#custom_dir ⇒ Object
22 23 24 |
# File 'lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb', line 22 def custom_dir config.javascripts_dir end |
#extension ⇒ Object
14 15 16 |
# File 'lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb', line 14 def extension 'js' end |