Class: Jasmine::AssetExpander::Rails4Or5Or6AssetBundle
- Inherits:
-
Object
- Object
- Jasmine::AssetExpander::Rails4Or5Or6AssetBundle
- Defined in:
- lib/jasmine/asset_expander.rb
Defined Under Namespace
Modules: GetOriginalAssetsHelper
Instance Method Summary collapse
Instance Method Details
#assets(pathname) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/jasmine/asset_expander.rb', line 21 def assets(pathname) if pathname =~ /\.css$/ context.get_stylesheet_assets(pathname.gsub(/\.css$/, '')) else context.get_javascript_assets(pathname.gsub(/\.js$/, '')) end end |