lib/templates/activerecrod_outbox.rb in outboxable-1.0.0 vs lib/templates/activerecrod_outbox.rb in outboxable-1.0.2

- old
+ new

@@ -2,10 +2,10 @@ attribute :allow_publish, :boolean, default: true before_save :check_publishing # Callbacks before_create :set_last_attempted_at - after_commit :publish, if: :allow_publish? + after_save :publish, if: :allow_publish # Enums enum status: { pending: 0, processing: 1, published: 2, failed: 3 } enum size: { single: 0, batch: 1 } # Validations