projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
12315: Add "exclude child processes" checkbox to /all_processes.
[arvados.git]
/
apps
/
workbench
/
config
/
application.rb
diff --git
a/apps/workbench/config/application.rb
b/apps/workbench/config/application.rb
index 4ac68198e8bd6fa6404512ad5479397223de1bc8..891dd432c0dccfedf4f773cd41748c0222124e88 100644
(file)
--- 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'
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)
# 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.
# 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'
# 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
end
end