Class: Jasmine::AssetExpander
- Inherits:
-
Object
- Object
- Jasmine::AssetExpander
- Defined in:
- lib/jasmine/asset_expander.rb
Defined Under Namespace
Classes: Rails4Or5Or6AssetBundle
Instance Method Summary collapse
Instance Method Details
#expand(src_dir, src_path) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/jasmine/asset_expander.rb', line 3 def (src_dir, src_path) pathname = src_path.gsub(/^\/?assets\//, '') asset_bundle.assets(pathname).flat_map { |asset| "/#{asset.gsub(/^\//, '')}" } end |