lib/volt/volt/app.rb in volt-0.9.5.pre7 vs lib/volt/volt/app.rb in volt-0.9.5.pre8
- old
+ new
@@ -89,10 +89,12 @@
load_app_code
# Load up the main component dependencies. This is needed to load in
# any opal_gem calls in dependencies.rb
# TODO: Needs to support all components
- AssetFiles.from_cache('main', component_paths)
+ if Dir.exists?(Volt.root + '/app/main')
+ AssetFiles.from_cache(app_url, 'main', component_paths)
+ end
reset_query_pool!
# Setup the middleware that we can only setup after all components boot.
setup_postboot_middleware