aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-09-03 22:35:31 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-09-03 22:35:31 +0000
commit4bd444c1fe960e757819fb67dada0a5a0bf344e4 (patch)
tree06ca057f21afb01c7d7eae1d95f7f92433a252cc /activesupport
parenteb90b94afdc4358793647b08d28e29af34d45ff8 (diff)
downloadrails-4bd444c1fe960e757819fb67dada0a5a0bf344e4.tar.gz
rails-4bd444c1fe960e757819fb67dada0a5a0bf344e4.tar.bz2
rails-4bd444c1fe960e757819fb67dada0a5a0bf344e4.zip
More deprecation fun
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4943 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/deprecation.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/deprecation.rb b/activesupport/lib/active_support/deprecation.rb
index 581d131c3a..01e1128af4 100644
--- a/activesupport/lib/active_support/deprecation.rb
+++ b/activesupport/lib/active_support/deprecation.rb
@@ -38,9 +38,8 @@ 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 Rails 2.0. " +
- "See http://www.rubyonrails.org/deprecation for details."
- "#{message} (#{method} at #{file}:#{line})"
+ message ||= "WARNING: #{method} is deprecated and will be removed from Rails 2.0."
+ "#{message}. See http://www.rubyonrails.org/deprecation for details. (#{method} at #{file}:#{line})"
end
def extract_callstack(callstack)