Skip to content

Commit

Permalink
Should not call User#update_send_at from User#sent! if send was a res…
Browse files Browse the repository at this point in the history
…ult of users.send_now being true
  • Loading branch information
winton committed Jul 19, 2009
1 parent 1b5c911 commit 668bda9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sum/model/user.rb
Expand Up @@ -147,7 +147,7 @@ def reset!
def sent!
self.flash = nil
self.send_now = false
update_send_at
update_send_at unless self.send_now_changed?
self.save
rescue
# This fixes a really confusing error when running cucumber features:
Expand Down

0 comments on commit 668bda9

Please sign in to comment.