From 3cdb16a6dc9c88615381d2e75dbd59b177bc8bff Mon Sep 17 00:00:00 2001 From: prog-supdex Date: Thu, 28 Sep 2023 13:55:17 +0200 Subject: [PATCH] add on_load(:active_job) --- lib/graphql/anycable/railtie.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/graphql/anycable/railtie.rb b/lib/graphql/anycable/railtie.rb index 505e0f5..f5c4ce9 100644 --- a/lib/graphql/anycable/railtie.rb +++ b/lib/graphql/anycable/railtie.rb @@ -1,15 +1,16 @@ # frozen_string_literal: true require "rails" -require "active_job/railtie" module GraphQL module AnyCable class Railtie < ::Rails::Railtie + config.eager_load_namespaces << ActiveJob + initializer "graphql_anycable.load_trigger_job" do - #ActiveSupport.on_load(:active_job) do + ActiveSupport.on_load(:active_job) do require "graphql/jobs/trigger_job" - #end + end end rake_tasks do