Methods
A
C
E
I
N
Included Modules
Attributes
[R] config
[R] asset_paths
Class Public methods
inherited(base)
    # File actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb, line 16
16:         def self.inherited(base)
17:           base.expansions = { }
18:         end
new(config, asset_paths)
    # File actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb, line 20
20:         def initialize(config, asset_paths)
21:           @config = config
22:           @asset_paths = asset_paths
23:         end
Instance Public methods
asset_name()
    # File actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb, line 25
25:         def asset_name
26:           raise NotImplementedError
27:         end
asset_tag(source, options)
    # File actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb, line 37
37:         def asset_tag(source, options)
38:           raise NotImplementedError
39:         end
custom_dir()
    # File actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb, line 33
33:         def custom_dir
34:           raise NotImplementedError
35:         end
extension()
    # File actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb, line 29
29:         def extension
30:           raise NotImplementedError
31:         end
include_tag(*sources)
    # File actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb, line 41
41:         def include_tag(*sources)
42:           options = sources.extract_options!.stringify_keys
43:           concat  = options.delete("concat")
44:           cache   = concat || options.delete("cache")
45:           recursive = options.delete("recursive")
46: 
47:           if concat || (config.perform_caching && cache)
48:             joined_name = (cache == true ? "all" : cache) + ".#{extension}"
49:             joined_path = File.join((joined_name[/^#{File::SEPARATOR}/] ? config.assets_dir : custom_dir), joined_name)
50:             unless config.perform_caching && File.exists?(joined_path)
51:               write_asset_file_contents(joined_path, compute_paths(sources, recursive))
52:             end
53:             asset_tag(joined_name, options)
54:           else
55:             sources = expand_sources(sources, recursive)
56:             ensure_sources!(sources) if cache
57:             sources.collect { |source| asset_tag(source, options) }.join("\n").html_safe
58:           end
59:         end