A platform for community discussion. Free, open, simple.
DEV: add routes_lazy_route to boost boot-up time (#14545)
Samf5cf647e579d
diff --git a/Gemfile b/Gemfileindex e09839e88af..bb70ee2c865 100644--- a/Gemfile+++ b/Gemfile@@ -151,6 +151,7 @@ group :test doendgroup :test, :development do+ gem 'routes_lazy_routes'gem 'rspec'gem 'mock_redis'gem 'listen', require: falsediff --git a/Gemfile.lock b/Gemfile.lockindex 35c90065603..2f0ac22bf7b 100644--- a/Gemfile.lock+++ b/Gemfile.lock@@ -352,6 +352,9 @@ GEMrexml (3.2.5)rinku (2.0.6)rotp (6.2.0)+ routes_lazy_routes (0.4.1)+ actionpack+ railtiesrqrcode (2.1.0)chunky_png (~> 1.0)rqrcode_core (~> 1.0)@@ -578,6 +581,7 @@ DEPENDENCIESredis-namespacerinkurotp+ routes_lazy_routesrqrcoderspecrspec-html-matchersdiff --git a/app/jobs/base.rb b/app/jobs/base.rbindex fdcd1dd55ed..0dbf9fce974 100644--- a/app/jobs/base.rb+++ b/app/jobs/base.rb@@ -1,5 +1,7 @@# frozen_string_literal: true+require 'sidekiq/api'+module Jobsdef self.queued