Skip to content

Instantly share code, notes, and snippets.

@russ
Created October 3, 2011 20:38
Show Gist options
  • Save russ/1260170 to your computer and use it in GitHub Desktop.
Save russ/1260170 to your computer and use it in GitHub Desktop.
class NotifierJob < Struct.new(:user)
def perform
Notifier.welcome(user).deliver
end
end
Delayed::Job.enqueue(NotifierJob.new(User.last))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment