-
-
Save anonymous/2624654 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| class MyDispatchWorker < Ruote::Worker | |
| def initialize(name, storage, allowed_participants) | |
| super(name, storage) | |
| @allowed_participants = allowed_participants | |
| end | |
| def process(msg) | |
| return true unless DISP_ACTIONS.include?(msg['action']) | |
| return true unless @allowed_participants.include?(msg['participant_name']) | |
| super | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment