Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.
Darren Cheng edited this page Nov 28, 2017 · 1 revision

Usage Details

This essentially abstracts the following:

# app/models/user.rb
class User < ActiveRecord::Base
  after_commit on: :create do
    Broker.publish(:user, event: :create, id: id)
  end
end

Queues are determined automatically:

class User            # queue :user
class User::Facebook  # queue :user_facebook

Shoryuken Support

The Shoryuken::Subscriber class...

Clone this wiki locally