diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-09-14 00:34:43 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-09-14 00:34:43 +0000 |
commit | 041b9b8a1c1661f90e8e586fddce981bfdb17f11 (patch) | |
tree | ef4778f501ee2a64b47d3eb2cc60236e8266e94d /activesupport/lib/active_support/deprecation.rb | |
parent | e6941149abbee39dbbe9898b0dc45e95046f7a70 (diff) | |
download | rails-041b9b8a1c1661f90e8e586fddce981bfdb17f11.tar.gz rails-041b9b8a1c1661f90e8e586fddce981bfdb17f11.tar.bz2 rails-041b9b8a1c1661f90e8e586fddce981bfdb17f11.zip |
Some 1.9 forward compatibility
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/deprecation.rb')
-rw-r--r-- | activesupport/lib/active_support/deprecation.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/deprecation.rb b/activesupport/lib/active_support/deprecation.rb index 2baa667c03..c9f1884da3 100644 --- a/activesupport/lib/active_support/deprecation.rb +++ b/activesupport/lib/active_support/deprecation.rb @@ -147,7 +147,9 @@ module ActiveSupport # Stand-in for @request, @attributes, @params, etc which emits deprecation # warnings on any method call (except #inspect). class DeprecatedInstanceVariableProxy #:nodoc: - instance_methods.each { |m| undef_method m unless m =~ /^__/ } + silence_warnings do + instance_methods.each { |m| undef_method m unless m =~ /^__/ } + end def initialize(instance, method, var = "@#{method}") @instance, @method, @var = instance, method, var |