|
@@ -14,7 +14,7 @@ Bundler.require(*Rails.groups)
|
|
|
|
|
|
# Only load gems for asset compilation if they are needed to avoid
|
|
|
# having unneeded runtime dependencies like NodeJS.
|
|
|
-if ENV['IN_ASSETS_PRECOMPILE'] || ARGV.include?('assets:precompile') || Rails.groups.exclude?('production')
|
|
|
+if ArgvHelper.argv.include?('assets:precompile') || Rails.groups.exclude?('production')
|
|
|
Bundler.load.current_dependencies.select do |dep|
|
|
|
require dep.name if dep.groups.include?(:assets)
|
|
|
end
|
|
@@ -47,7 +47,7 @@ module Zammad
|
|
|
|
|
|
# zeitwerk:check will only check preloaded paths. To make sure that also lib/ gets validated,
|
|
|
# add it to the eager_load_paths only if zeitwerk:check is running.
|
|
|
- config.eager_load_paths += %W[#{config.root}/lib] if ARGV[0].eql? 'zeitwerk:check'
|
|
|
+ config.eager_load_paths += %W[#{config.root}/lib] if ArgvHelper.argv[0].eql? 'zeitwerk:check'
|
|
|
|
|
|
config.active_job.queue_adapter = :delayed_job
|
|
|
|