diff options
author | twinturbo <me@broadcastingadam.com> | 2012-04-17 22:01:06 +0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-04-28 13:40:30 -0300 |
commit | 9608395923899e3f91e0d07ac2ed52efc17bcc40 (patch) | |
tree | 59e943f447ffdc89a506718e27453bfe7911eafe /activesupport/lib/active_support/deprecation | |
parent | 76cd1ca08dc31babd7e9e527a8a9c86321ed905a (diff) | |
download | rails-9608395923899e3f91e0d07ac2ed52efc17bcc40.tar.gz rails-9608395923899e3f91e0d07ac2ed52efc17bcc40.tar.bz2 rails-9608395923899e3f91e0d07ac2ed52efc17bcc40.zip |
Document #behavior= and update CHANGELOG
Diffstat (limited to 'activesupport/lib/active_support/deprecation')
-rw-r--r-- | activesupport/lib/active_support/deprecation/behaviors.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/deprecation/behaviors.rb b/activesupport/lib/active_support/deprecation/behaviors.rb index 8d92c50679..73b6a42505 100644 --- a/activesupport/lib/active_support/deprecation/behaviors.rb +++ b/activesupport/lib/active_support/deprecation/behaviors.rb @@ -13,6 +13,13 @@ module ActiveSupport # Sets the behavior to the specified value. Can be a single value or an array. # + # Available behaviors: + # + # [+:stderr+] Print deprecations to +$stderror+ + # [+:log+] Send to +Rails.logger+ + # [+:notify+] Instrument using +ActiveSupport::Notifications+ + # [+:silence+] Do nothing + # # Examples # # ActiveSupport::Deprecation.behavior = :stderr |