diff options
author | Xavier Noria <fxn@hashref.com> | 2013-08-13 01:38:48 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2013-08-13 01:44:52 +0200 |
commit | c7ac0a5b28e1403371e4c65666ec92dd2bf0e0d6 (patch) | |
tree | 8eb093a183943e1d96153c520683541ce489e6d8 /activesupport/lib | |
parent | 4c1454db22cb42d185afc58312e1d62c0f542f44 (diff) | |
download | rails-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')
-rw-r--r-- | activesupport/lib/active_support/deprecation/behaviors.rb | 4 |
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+. |