aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/deprecation/reporting.rb
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-04-27 00:30:31 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-04-27 19:50:51 +0530
commitf76dd271c6c6a3ae613a37c5a3b8b13b945b5d66 (patch)
tree8b67a2f2f2890ea98b829155f1a77104938ebd9f /activesupport/lib/active_support/deprecation/reporting.rb
parentc4b494bdc44a7aaa6b38b512d0bf6cfb8f1cfb15 (diff)
downloadrails-f76dd271c6c6a3ae613a37c5a3b8b13b945b5d66.tar.gz
rails-f76dd271c6c6a3ae613a37c5a3b8b13b945b5d66.tar.bz2
rails-f76dd271c6c6a3ae613a37c5a3b8b13b945b5d66.zip
minor changes
Diffstat (limited to 'activesupport/lib/active_support/deprecation/reporting.rb')
-rw-r--r--activesupport/lib/active_support/deprecation/reporting.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/deprecation/reporting.rb b/activesupport/lib/active_support/deprecation/reporting.rb
index ced08b8783..5d7e241d1a 100644
--- a/activesupport/lib/active_support/deprecation/reporting.rb
+++ b/activesupport/lib/active_support/deprecation/reporting.rb
@@ -5,10 +5,8 @@ module ActiveSupport
# Outputs a deprecation warning to the output configured by <tt>ActiveSupport::Deprecation.behavior</tt>
#
- # Example:
- #
# ActiveSupport::Deprecation.warn("something broke!")
- # #=> "DEPRECATION WARNING: something broke! (called from your_code.rb:1)"
+ # # => "DEPRECATION WARNING: something broke! (called from your_code.rb:1)"
def warn(message = nil, callstack = caller)
return if silenced
deprecation_message(callstack, message).tap do |m|