Skip to content

Instantly share code, notes, and snippets.

@davidjrice
Created June 4, 2010 02:08
Show Gist options
  • Save davidjrice/424820 to your computer and use it in GitHub Desktop.
Save davidjrice/424820 to your computer and use it in GitHub Desktop.
def perform
order = Order.find(order_id)
if !order.paid? && !order.payment
order.expire!
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment