diff options
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/deprecation.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/deprecation.rb b/activesupport/lib/active_support/deprecation.rb index c61dd73076..2cfbfcc21a 100644 --- a/activesupport/lib/active_support/deprecation.rb +++ b/activesupport/lib/active_support/deprecation.rb @@ -87,10 +87,9 @@ module ActiveSupport deprecations = [] ActiveSupport::Deprecation.behavior = Proc.new do |message| deprecations << message - old_behavior.call(message) if old_behavior end yield - return deprecations + deprecations ensure ActiveSupport::Deprecation.behavior = old_behavior end |