Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
Be more clear about setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jul 27, 2017
1 parent a473ea8 commit f03e4c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/dor/config.rb
Expand Up @@ -13,16 +13,17 @@ def initialize(*args)
run_callbacks(:initialize) { }
end

# Call the super method with callbacks and with $VERBOSE temporarily disabled
def configure(*args)
result = self
temp_v = $-v
$-v = nil
temp_verbose = $VERBOSE
$VERBOSE = nil
begin
run_callbacks :configure do
result = super(*args)
end
ensure
$-v = temp_v
$VERBOSE = temp_verbose
end
result
end
Expand Down

0 comments on commit f03e4c4

Please sign in to comment.