diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-16 11:50:50 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-16 11:51:35 -0300 |
commit | 12d839cdaf850ceb102b96ba873c2ac8e926a6b9 (patch) | |
tree | cdd47319d973dd312316d790dabaf43e5fc1d840 /activesupport | |
parent | e63eb428b2dd73b393a7f834b8ddd46b6004c6ca (diff) | |
download | rails-12d839cdaf850ceb102b96ba873c2ac8e926a6b9.tar.gz rails-12d839cdaf850ceb102b96ba873c2ac8e926a6b9.tar.bz2 rails-12d839cdaf850ceb102b96ba873c2ac8e926a6b9.zip |
Copy-edits in the ActiveSupport::Subscriber documentation.
Thank you @fxn :green_heart::yellow_heart::heart::purple_heart::blue_heart:
[ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/subscriber.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/activesupport/lib/active_support/subscriber.rb b/activesupport/lib/active_support/subscriber.rb index a6ad473b59..ab76cf5c85 100644 --- a/activesupport/lib/active_support/subscriber.rb +++ b/activesupport/lib/active_support/subscriber.rb @@ -1,6 +1,6 @@ module ActiveSupport # ActiveSupport::Subscriber is an object set to consume - # ActiveSupport::Notifications. The subscriber dispatches notifications to + # ActiveSupport::Notifications. The subscriber dispatches notifications to # a registered object based on its given namespace. # # An example would be Active Record subscriber responsible for collecting @@ -16,15 +16,14 @@ module ActiveSupport # # And it's finally registered as: # - # ActiveRecord::Subscriber.attach_to :active_record + # ActiveRecord::StatsSubscriber.attach_to :active_record # # Since we need to know all instance methods before attaching the log - # subscriber, the line above should be called after your - # <tt>ActiveRecord::Subscriber</tt> definition. + # subscriber, the line above should be called after your subscriber definition. # # After configured, whenever a "sql.active_record" notification is published, # it will properly dispatch the event (ActiveSupport::Notifications::Event) to - # the `sql` method. + # the +sql+ method. class Subscriber class << self @@ -45,7 +44,7 @@ module ActiveSupport end def initialize - @queue_key = [self.class.name, object_id].join "-" + @queue_key = [self.class.name, object_id].join "-" super end |