aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/deprecation.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/deprecation.rb')
-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)