Module: ActiveOutbox::Outboxable

Extended by:
ActiveSupport::Concern
Defined in:
lib/active_outbox/outboxable.rb

Instance Method Summary collapse

Instance Method Details

#save(**options, &block) ⇒ Object



26
27
28
29
30
31
32
# File 'lib/active_outbox/outboxable.rb', line 26

def save(**options, &block)
  if options[:outbox_event].present?
    @outbox_event = options[:outbox_event].underscore.upcase
  end

  super(**options, &block)
end

#save!(**options, &block) ⇒ Object



34
35
36
37
38
39
40
# File 'lib/active_outbox/outboxable.rb', line 34

def save!(**options, &block)
  if options[:outbox_event].present?
    @outbox_event = options[:outbox_event].underscore.upcase
  end

  super(**options, &block)
end