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