Changeset 4978
- Timestamp:
- 09/04/06 05:55:55 (2 years ago)
- Files:
-
- trunk/activesupport/lib/active_support/deprecation.rb (modified) (1 diff)
- trunk/activesupport/test/deprecation_test.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/lib/active_support/deprecation.rb
r4964 r4978 46 46 @silenced = old_silenced 47 47 end 48 49 attr_writer :silenced 50 48 51 49 52 private trunk/activesupport/test/deprecation_test.rb
r4961 r4978 10 10 11 11 def partially(foo = nil) 12 ActiveSupport::Deprecation.warn 'calling with foo=nil is out'if foo.nil?12 ActiveSupport::Deprecation.warn('calling with foo=nil is out', caller) if foo.nil? 13 13 end 14 14 … … 83 83 assert_not_deprecated { @dtc.partially } 84 84 end 85 86 ActiveSupport::Deprecation.silenced = true 87 assert_not_deprecated { @dtc.partially } 88 ActiveSupport::Deprecation.silenced = false 85 89 end 86 90 end