Created
May 7, 2012 02:00
-
-
Save d11wtq/2625421 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
module Flippa | |
module Job | |
# Allow Resque jobs to be instantiated and performed, instead of singleton classes. | |
module Instance | |
extend ActiveSupport::Concern | |
module ClassMethods | |
# Default .perform creates an instance and calls perform on that. | |
def perform(*args) | |
new(*args).perform(*args) | |
end | |
end | |
# Arguments are passed to an initializer, if desirable. | |
def initialize(*) # stub | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment