maestrano/mno-enterprise

View on GitHub
frontend/app/views/layouts/mno_enterprise/_application_js.html.haml

Summary

Maintainability
Test Coverage
-# Load all CDN Base libraries
= render "layouts/mno_enterprise/common_cdn_lib_js"
  
-# JS libraries hosted internally - usually not changing
= javascript_include_tag "mno_enterprise/application_lib"
  
-# Application JS - changing quite often
= javascript_include_tag "mno_enterprise/application"

-# Maestrano Enterprise extensions
-# Only loaded if the file has been included in the list of files to compile
- if Rails.application.config.assets.precompile.include?("mno_enterprise_extensions.js")
  = javascript_include_tag "mno_enterprise_extensions"