aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/subscriber.rb
diff options
context:
space:
mode:
authorRichard Schneeman <richard.schneeman@gmail.com>2015-04-25 21:44:36 -0500
committerRichard Schneeman <richard.schneeman@gmail.com>2015-04-25 21:44:36 -0500
commit951ec0325621c9d67cb2f13d5d6de4e3983fae0e (patch)
tree5da21ace180ad64d39d43b31fc670c4fbe1c3872 /activesupport/lib/active_support/subscriber.rb
parent74f5491ff30ff945db1d49563903ac8e5532b0ad (diff)
parent4c945cccb51bffaee486cbd01b3589dcb085ac82 (diff)
downloadrails-951ec0325621c9d67cb2f13d5d6de4e3983fae0e.tar.gz
rails-951ec0325621c9d67cb2f13d5d6de4e3983fae0e.tar.bz2
rails-951ec0325621c9d67cb2f13d5d6de4e3983fae0e.zip
Merge pull request #19902 from khundawg/dm-active-support-subsciber-doc
[ci skip] Update ActiveSupport::Subscriber documentation
Diffstat (limited to 'activesupport/lib/active_support/subscriber.rb')
-rw-r--r--activesupport/lib/active_support/subscriber.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/subscriber.rb b/activesupport/lib/active_support/subscriber.rb
index 8db423f0e9..1cd4b807ad 100644
--- a/activesupport/lib/active_support/subscriber.rb
+++ b/activesupport/lib/active_support/subscriber.rb
@@ -5,7 +5,7 @@ module ActiveSupport
# 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
+ # An example would be an Active Record subscriber responsible for collecting
# statistics about queries:
#
# module ActiveRecord
@@ -61,7 +61,7 @@ module ActiveSupport
pattern = "#{event}.#{namespace}"
- # don't add multiple subscribers (eg. if methods are redefined)
+ # Don't add multiple subscribers (eg. if methods are redefined).
return if subscriber.patterns.include?(pattern)
subscriber.patterns << pattern