Skip to content

Commit 80123f4

Browse files
committed
Add deprecation warning for DSL#using
1 parent 8a4fed8 commit 80123f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/dry/initializer/mixin.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def option(name, type = nil, **options)
4040
# @return [self]
4141
#
4242
def using(**settings, &block)
43+
warn "[DEPRECATION] The method `using` will be removed in v0.10.0"
4344
Scope.new(self, settings).instance_eval(&block)
4445
self
4546
end

0 commit comments

Comments
 (0)