Handle drafts with high ID numbers.
authorEdward Z. Yang <ezyang@mit.edu>
Wed, 29 Aug 2012 00:34:20 +0000 (20:34 -0400)
committerEdward Z. Yang <ezyang@mit.edu>
Sat, 1 Dec 2012 22:52:57 +0000 (14:52 -0800)
commit1a11d6262fc81d130b9d0b75930787e368cfefe9
treecd00b5f4c25075f56271bfa092009ad5260b6eb6
parent2ffc13c0ca1ff317c6251b8907d561afec840204
Handle drafts with high ID numbers.

Previously, drafts were scanned once at startup, and then
the draft with the highest ID number was used as the "high
watermark".  This, however, interacted poorly with further
scans, which then ignored any lower numbers, even if they
were new.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
lib/sup/draft.rb