mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Made it clear that deprecated stuff leaves on majors only
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4926 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -34,7 +34,7 @@ module ActiveSupport
|
||||
private
|
||||
def deprecation_message(callstack, message = nil)
|
||||
file, line, method = extract_callstack(callstack)
|
||||
message ||= "WARNING: #{method} is deprecated and will be removed from the next Rails release"
|
||||
message ||= "WARNING: #{method} is deprecated and will be removed from the next major Rails release (2.0)"
|
||||
"#{message} (#{method} at #{file}:#{line})"
|
||||
end
|
||||
|
||||
@@ -78,7 +78,6 @@ module ActiveSupport
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def collect_deprecations
|
||||
old_behavior = ActiveSupport::Deprecation.behavior
|
||||
deprecations = []
|
||||
|
||||
Reference in New Issue
Block a user