Created
November 24, 2011 15:02
-
-
Save sumskyi/1391531 to your computer and use it in GitHub Desktop.
immediately performing Qu backend
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
if %w(test development).include? Rails.env | |
Qu.backend = Qu::Backend::RightNow.new | |
else |
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
module Qu | |
module Backend | |
class RightNow < Base | |
def enqueue(payload) | |
payload.perform | |
end | |
def completed(payload); end | |
def release(payload); end | |
def failed(payload, error); end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment