lib/table_sync/publishing/batch.rb in table_sync-6.4.0 vs lib/table_sync/publishing/batch.rb in table_sync-6.4.1
- old
+ new
@@ -1,16 +1,19 @@
# frozen_string_literal: true
class TableSync::Publishing::Batch
include Tainbox
+ include TableSync::Utils::RequiredValidator
attribute :object_class
attribute :original_attributes
attribute :routing_key
attribute :headers
attribute :event, default: :update
+
+ require_attributes :object_class, :original_attributes
def publish_later
job.perform_later(job_attributes)
end