diff --git a/test/dummy/config/application.rb b/test/dummy/config/application.rb index e42194f2..a50dff65 100644 --- a/test/dummy/config/application.rb +++ b/test/dummy/config/application.rb @@ -3,7 +3,7 @@ require_relative "boot" require "active_model/railtie" -# require "active_job/railtie" +require "active_job/railtie" require "active_record/railtie" # require "active_storage/engine" require "action_controller/railtie" diff --git a/test/dummy/jobs/application_job.rb b/test/dummy/jobs/application_job.rb new file mode 100644 index 00000000..d92ffddc --- /dev/null +++ b/test/dummy/jobs/application_job.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +class ApplicationJob < ActiveJob::Base +end diff --git a/test/dummy/jobs/example_job.rb b/test/dummy/jobs/example_job.rb new file mode 100644 index 00000000..c6f11e53 --- /dev/null +++ b/test/dummy/jobs/example_job.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class ExampleJob < ApplicationJob + queue_as :default + + def perform(*values) + # Do something later + end +end