Source: show | on GitHub
# File actionpack/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb, line 10 def asset_name 'javascript' end
# File actionpack/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb, line 18 def asset_tag(source, options) content_tag("script", "", { "type" => Mime::JS, "src" => path_to_asset(source) }.merge(options)) end
# File actionpack/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb, line 22 def custom_dir config.javascripts_dir end
# File actionpack/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb, line 14 def extension 'js' end