lib/templates/outbox.rb in outboxable-0.1.6 vs lib/templates/outbox.rb in outboxable-0.1.7

- old
+ new

@@ -19,9 +19,10 @@ self.last_attempted_at = 10.seconds.from_now end def publish Outboxable::Worker.perform_async(id) + update(status: :processing, last_attempted_at: 1.minute.from_now) end def check_publishing self.allow_publish = false if published? end