Module: OpalWebpackLoader::RailsViewHelper
- Defined in:
- lib/opal-webpack-loader/rails_view_helper.rb
Instance Method Summary collapse
Instance Method Details
#application_script_tag ⇒ Object
13 14 15 |
# File 'lib/opal-webpack-loader/rails_view_helper.rb', line 13 def application_script_tag javascript_include_tag("#{OpalWebpackLoader.application_js_path}") end |
#owl_script_tag(path) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/opal-webpack-loader/rails_view_helper.rb', line 3 def owl_script_tag(path) if OpalWebpackLoader.use_manifest asset = path.split('/').last asset_path = OpalWebpackLoader::Manifest.lookup_path_for(asset) javascript_include_tag("#{OpalWebpackLoader.client_asset_path}#{asset_path}") else javascript_include_tag("#{OpalWebpackLoader.client_asset_path}#{path}") end end |