Skip to content

Commit

Permalink
add on_load(:active_job)
Browse files Browse the repository at this point in the history
  • Loading branch information
prog-supdex committed Sep 28, 2023
1 parent ff265d5 commit 3cdb16a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/graphql/anycable/railtie.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 3cdb16a

Please sign in to comment.