Skip to content

Instantly share code, notes, and snippets.

@jesperronn
Created April 29, 2016 13:37
Show Gist options
  • Save jesperronn/11ed1d4cd2e9b7238032e8cd97c5ca00 to your computer and use it in GitHub Desktop.
Save jesperronn/11ed1d4cd2e9b7238032e8cd97c5ca00 to your computer and use it in GitHub Desktop.
SuckerPunch for Rails (Rails 4.2). These are the only changes I needed to get started
# add this line to your `Gemfile`:
gem 'sucker_punch'
# config/initializers/sucker_punch.rb
Rails.application.configure do
config.active_job.queue_adapter = :sucker_punch
# if you want to use Sucker Punch version 2.0.0+ with Rails < 5.0.0, be sure to
# include the backwards compatibility module in an initializer:
require 'sucker_punch/async_syntax'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment