Skip to content

Commit

Permalink
fix: require sbmt-outbox dep as optional dep
Browse files Browse the repository at this point in the history
  • Loading branch information
bibendi committed Feb 27, 2024
1 parent 87f08cf commit 0219de8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/sbmt/kafka_consumer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
require "dry/types"
require "dry-struct"

begin
require "sbmt/outbox"
rescue LoadError
# sbmt-outbox is an optional dependency
end

require "anyway/rails" if defined?(Rails)
require_relative "kafka_consumer/railtie" if defined?(Rails::Railtie)

Expand Down

0 comments on commit 0219de8

Please sign in to comment.