diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-04 02:57:40 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-04 02:57:40 +0000 |
commit | 23d579b262e6f665d8d343d066aa7fd640ce46b4 (patch) | |
tree | 0582bc071ed77bdc63b4d1e4a691a504b493ac05 /activesupport/lib | |
parent | 7466c1125c907ad9b9391331809c749ccb3d1c78 (diff) | |
download | rails-23d579b262e6f665d8d343d066aa7fd640ce46b4.tar.gz rails-23d579b262e6f665d8d343d066aa7fd640ce46b4.tar.bz2 rails-23d579b262e6f665d8d343d066aa7fd640ce46b4.zip |
Quiet while testing, you.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4961 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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 |