Module: RevManifest::Helper
- Defined in:
- lib/rev_manifest/helper.rb
Instance Method Summary collapse
Instance Method Details
#compute_asset_path(source, options = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/rev_manifest/helper.rb', line 3 def compute_asset_path(source, = {}) if RevManifest.include?(source) if RevManifest.enabled? RevManifest.resolve(source, ) else dir = RevManifest.asset_public_directories[[:type]] || "" File.join(dir, source) end else super end end |