diff options
author | Xavier Noria <fxn@hashref.com> | 2012-01-12 14:57:58 -0800 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2012-01-12 14:59:07 -0800 |
commit | 01c1127461c92be881b0a7278794ea759a0b8558 (patch) | |
tree | 6fc384fe3f0c80b8b7934623e3e3ebc9b977c730 /activesupport/lib | |
parent | 700f778814ccc9d17b50bc197f7bd1a909567991 (diff) | |
download | rails-01c1127461c92be881b0a7278794ea759a0b8558.tar.gz rails-01c1127461c92be881b0a7278794ea759a0b8558.tar.bz2 rails-01c1127461c92be881b0a7278794ea759a0b8558.zip |
warns against using temporary subscribers
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/notifications.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/notifications.rb b/activesupport/lib/active_support/notifications.rb index f549d2fff3..13f675c654 100644 --- a/activesupport/lib/active_support/notifications.rb +++ b/activesupport/lib/active_support/notifications.rb @@ -68,6 +68,10 @@ module ActiveSupport # Sometimes you do not want to subscribe to an event for the entire life of # the application. There are two ways to unsubscribe. # + # WARNING: The instrumentation framework is designed for long-running subscribers, + # use this feature sparingly because it wipes some internal caches and that has + # a negative impact on performance. + # # === Subscribe While a Block Runs # # You can subscribe to some event temporarily while some block runs. For |