X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f2574ec2e4ddef03c9504cd58741e73426ea1b17..58be2f1c488248d11dfb2ad730b6a8d56e557e63:/apps/workbench/config/application.rb?ds=sidebyside diff --git a/apps/workbench/config/application.rb b/apps/workbench/config/application.rb index 4ac68198e8..891dd432c0 100644 --- a/apps/workbench/config/application.rb +++ b/apps/workbench/config/application.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require File.expand_path('../boot', __FILE__) require 'rails/all' @@ -12,6 +16,7 @@ module ArvadosWorkbench # Custom directories with classes and modules you want to be autoloadable. # config.autoload_paths += %W(#{config.root}/extras) + config.autoload_paths += %W(#{config.root}/lib) # Only load the plugins named here, in the order given (default is alphabetical). # :all can be used as a placeholder for all plugins not explicitly named. @@ -47,6 +52,11 @@ module ArvadosWorkbench # Version of your assets, change this if you want to expire all your assets config.assets.version = '1.0' + + # npm-rails loads top-level modules like window.Mithril, but we + # also pull in some code from node_modules in application.js, like + # mithril/stream/stream. + config.assets.paths << Rails.root.join('node_modules') end end