Module: Jasmine::AssetExpander::Rails4Or5Or6AssetBundle::GetOriginalAssetsHelper
- Defined in:
- lib/jasmine/asset_expander.rb
Instance Method Summary collapse
Instance Method Details
#get_javascript_assets(pathname) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/jasmine/asset_expander.rb', line 52 def get_javascript_assets(pathname) if asset = lookup_debug_asset(pathname, type: :javascript) if asset.respond_to?(:to_a) asset.to_a.map do |a| path_to_javascript(a.logical_path, debug: true) end else Array(path_to_javascript(asset.logical_path, debug: true)) end else [] end end |
#get_stylesheet_assets(pathname) ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/jasmine/asset_expander.rb', line 66 def get_stylesheet_assets(pathname) if asset = lookup_debug_asset(pathname, type: :stylesheet) if asset.respond_to?(:to_a) asset.to_a.map do |a| path_to_stylesheet(a.logical_path, debug: true) end else Array(path_to_stylesheet(asset.logical_path, debug: true)) end else [] end end |