Skip to content

Commit

Permalink
Prevent any possible errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Linquist committed Oct 17, 2010
1 parent 3f79588 commit 50ead13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/order.rb
Expand Up @@ -14,7 +14,7 @@ def send_pints
self.quantity.times do |i|
self.purchaser.purchase_pint_for(self.user, self.id)
end
tweetie(quantity,self.purchaser, self.user)
tweetie(quantity,self.purchaser, self.user) rescue nil #Suppress errors momentarily Future: bubble to controller/notify or log
self.update_attribute('date_paid', Time.now)
end

Expand Down

0 comments on commit 50ead13

Please sign in to comment.