Skip to content

Instantly share code, notes, and snippets.

@ajsharp
Created May 25, 2012 17:35
Show Gist options
  • Select an option

  • Save ajsharp/2789374 to your computer and use it in GitHub Desktop.

Select an option

Save ajsharp/2789374 to your computer and use it in GitHub Desktop.
class SomeBackgroundJob
@queue = :whatever
def self.perform(model_id)
model = Model.find(model_id)
model.do_a_thing
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment