Created
April 29, 2016 13:37
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add this line to your `Gemfile`: | |
gem 'sucker_punch' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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