aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/deprecation/behaviors.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2013-08-13 01:38:48 +0200
committerXavier Noria <fxn@hashref.com>2013-08-13 01:44:52 +0200
commitc7ac0a5b28e1403371e4c65666ec92dd2bf0e0d6 (patch)
tree8eb093a183943e1d96153c520683541ce489e6d8 /activesupport/lib/active_support/deprecation/behaviors.rb
parent4c1454db22cb42d185afc58312e1d62c0f542f44 (diff)
downloadrails-c7ac0a5b28e1403371e4c65666ec92dd2bf0e0d6.tar.gz
rails-c7ac0a5b28e1403371e4c65666ec92dd2bf0e0d6.tar.bz2
rails-c7ac0a5b28e1403371e4c65666ec92dd2bf0e0d6.zip
renames the :abort deprecation behaviour to :raise
That is a better name, thanks @jeremy.
Diffstat (limited to 'activesupport/lib/active_support/deprecation/behaviors.rb')
-rw-r--r--activesupport/lib/active_support/deprecation/behaviors.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/deprecation/behaviors.rb b/activesupport/lib/active_support/deprecation/behaviors.rb
index 8c7d80c134..328b8c320a 100644
--- a/activesupport/lib/active_support/deprecation/behaviors.rb
+++ b/activesupport/lib/active_support/deprecation/behaviors.rb
@@ -7,7 +7,7 @@ module ActiveSupport
class Deprecation
# Default warning behaviors per Rails.env.
DEFAULT_BEHAVIORS = {
- abort: ->(message, callstack) {
+ raise: ->(message, callstack) {
e = DeprecationException.new(message)
e.set_backtrace(callstack)
raise e
@@ -52,7 +52,7 @@ module ActiveSupport
#
# Available behaviors:
#
- # [+abort+] Raises <tt>ActiveSupport::DeprecationException</tt>.
+ # [+raise+] Raise <tt>ActiveSupport::DeprecationException</tt>.
# [+stderr+] Log all deprecation warnings to +$stderr+.
# [+log+] Log all deprecation warnings to +Rails.logger+.
# [+notify+] Use +ActiveSupport::Notifications+ to notify +deprecation.rails+.