From b1bd2a32cb67554d85a0cff3af8763c6beb760c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Busqu=C3=A9?= Date: Fri, 13 Sep 2024 16:10:12 +0200 Subject: [PATCH] Add missing require statements After merging [#20](https://github.com/dry-rb/dry-operation/pull/20) we need to do explicit with extensions. --- lib/dry/operation.rb | 2 ++ lib/dry/operation/extensions/rom.rb | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dry/operation.rb b/lib/dry/operation.rb index 854e3c8..20ed60e 100644 --- a/lib/dry/operation.rb +++ b/lib/dry/operation.rb @@ -3,6 +3,8 @@ require "zeitwerk" require "dry/monads" require "dry/operation/errors" +require "dry/operation/extensions/active_record" +require "dry/operation/extensions/rom" module Dry # DSL for chaining operations that can fail diff --git a/lib/dry/operation/extensions/rom.rb b/lib/dry/operation/extensions/rom.rb index c0faa01..2592849 100644 --- a/lib/dry/operation/extensions/rom.rb +++ b/lib/dry/operation/extensions/rom.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "dry/operation/errors" - begin require "rom-sql" rescue LoadError