Skip to content

Commit

Permalink
remove need for separate default module
Browse files Browse the repository at this point in the history
  • Loading branch information
markburns committed Jul 3, 2024
1 parent 1cc4c2b commit d37ccac
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions lib/interactify.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class << self
delegate :root, to: :configuration

def included(base)
base.include Interactify::WithDefaultJob
# call `with` without arguments to get default Job and Async classes
base.include(with)
end

def with(sidekiq_opts = {})
Expand Down Expand Up @@ -56,12 +57,4 @@ def with(sidekiq_opts = {})
end
end
end

module WithDefaultJob
def self.included(base)
base.include Interactify::Core
base.include Interactify::Async::Jobable
base.interactor_job
end
end
end

0 comments on commit d37ccac

Please sign in to comment.