Class: Sprockets::Helpers::ManifestPath

Inherits:
AssetPath show all
Defined in:
lib/sprockets/helpers/manifest_path.rb

Overview

‘ManifestPath` uses the digest path and prepends the prefix.

Instance Attribute Summary

Attributes inherited from BasePath

#options, #uri

Instance Method Summary collapse

Methods inherited from AssetPath

#to_a

Methods inherited from BasePath

#sprockets_helpers_settings, #to_s

Constructor Details

#initialize(uri, path, options = {}) ⇒ ManifestPath

Returns a new instance of ManifestPath.



6
7
8
9
10
11
12
13
14
15
# File 'lib/sprockets/helpers/manifest_path.rb', line 6

def initialize(uri, path, options = {})
  @uri = uri
  @options = options
  @options = {
    :body => false,
    :prefix => sprockets_helpers_settings.prefix
  }.merge options

  @uri.path = path.to_s
end