Skip to content

Commit

Permalink
Add example job to dummy app (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 authored Oct 22, 2024
1 parent 0b6dfa6 commit ef9403a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions test/dummy/jobs/application_job.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class ApplicationJob < ActiveJob::Base
end
9 changes: 9 additions & 0 deletions test/dummy/jobs/example_job.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

class ExampleJob < ApplicationJob
queue_as :default

def perform(*values)
# Do something later
end
end

0 comments on commit ef9403a

Please sign in to comment.