Skip to content

Commit

Permalink
Land #13360, turn off Ruby deprecation warnings for users
Browse files Browse the repository at this point in the history
  • Loading branch information
adfoster-r7 committed Apr 29, 2020
2 parents 2dc26db + 0e726b3 commit 6c75ced
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions msfconsole
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
require 'pathname'

begin
# TODO: Temporary until warnings can be turned on only for developers to prevent confusion for end users
Warning[:deprecated] = false

# @see https://github.com/rails/rails/blob/v3.2.17/railties/lib/rails/generators/rails/app/templates/script/rails#L3-L5
require Pathname.new(__FILE__).realpath.expand_path.parent.join('config', 'boot')
require 'metasploit/framework/profiler'
Expand Down

0 comments on commit 6c75ced

Please sign in to comment.