Skip to content

Commit 9f9abd3

Browse files
committed
When calling Net::LDAP#encryption, it shows deprecation warning.
1 parent def2c46 commit 9f9abd3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/net/ldap.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ def authenticate(username, password)
590590
# This method is deprecated.
591591
#
592592
def encryption(args)
593+
warn "Deprecation warning: please give :encryption option as a Hash to Net::LDAP.new"
593594
return if args.nil?
594595
return @encryption = args if args.is_a? Hash
595596

0 commit comments

Comments
 (0)