Skip to content

Commit

Permalink
Only use Sidekiq for ActiveJob in production
Browse files Browse the repository at this point in the history
  • Loading branch information
tsujigiri committed Apr 8, 2015
1 parent 2867720 commit 98f505f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,5 @@ class Application < Rails::Application
end

config.active_record.raise_in_transactional_callbacks = true

# Make ActiveJob and hence ActionMailer use Sidekiq
config.active_job.queue_adapter = :sidekiq
end
end
3 changes: 3 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,7 @@

# Eager load code on boot.
config.eager_load = true

# Make ActiveJob and hence ActionMailer use Sidekiq
config.active_job.queue_adapter = :sidekiq
end

0 comments on commit 98f505f

Please sign in to comment.