Module: Redborder::KafkaNotifier::Base

Defined in:
lib/kafka_notifier/base.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_kafka_notifier(opts = {}) ⇒ Object



19
20
21
22
23
24
25
26
27
# File 'lib/kafka_notifier/base.rb', line 19

def acts_as_kafka_notifier(opts = {})
  acts_as_kafka_notifier_options opts

  include Model

  after_create :acts_as_kafka_notifier_emit_create
  after_update :acts_as_kafka_notifier_emit_update
  after_destroy :acts_as_kafka_notifier_emit_destroy
end