Permalink
Browse files

Document #behavior= and update CHANGELOG

  • Loading branch information...
1 parent 76cd1ca commit 9608395923899e3f91e0d07ac2ed52efc17bcc40 twinturbo committed with carlosantoniodasilva Apr 17, 2012
Showing with 9 additions and 0 deletions.
  1. +2 −0 activesupport/CHANGELOG.md
  2. +7 −0 activesupport/lib/active_support/deprecation/behaviors.rb
@@ -1,5 +1,7 @@
## Rails 4.0.0 (unreleased) ##
+* Add ActiveSupport::Deprecations.behavior = :slience to to completely ignore *twinturbo*
+
* Make Module#delegate stop using `send` - can no longer delegate to private methods. *dasch*
* AS::Callbacks: deprecate `:rescuable` option. *Bogdan Gusiev*
@@ -13,6 +13,13 @@ def behavior
# 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

0 comments on commit 9608395

Please sign in to comment.