lib/table_sync/publishing/raw.rb in table_sync-6.4.0 vs lib/table_sync/publishing/raw.rb in table_sync-6.4.1
- old
+ new
@@ -1,18 +1,21 @@
# frozen_string_literal: true
class TableSync::Publishing::Raw
include Tainbox
+ include TableSync::Utils::RequiredValidator
attribute :model_name
attribute :table_name
attribute :schema_name
attribute :original_attributes
attribute :routing_key
attribute :headers
attribute :event, default: :update
+
+ require_attributes :model_name, :original_attributes
def publish_now
message.publish
end