Changeset 5161
- Timestamp:
- 09/22/06 01:16:09 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/lib/active_support/deprecation.rb
r5115 r5161 76 76 class_eval(<<-EOS, __FILE__, __LINE__) 77 77 def #{target}_with_deprecation#{punctuation}(*args, &block) 78 ::ActiveSupport::Deprecation.warn( "#{method_name} is deprecated and will be removed from Rails 2.0", caller)78 ::ActiveSupport::Deprecation.warn(self.class.deprecated_method_warning(:#{method_name}), caller) 79 79 #{target}_without_deprecation#{punctuation}(*args, &block) 80 80 end … … 82 82 end 83 83 end 84 end 85 86 def deprecated_method_warning(method_name) 87 "#{method_name} is deprecated and will be removed from Rails #{deprecation_horizon}" 88 end 89 90 def deprecation_horizon 91 '2.0' 84 92 end 85 93 end