diff options
author | Mikel Lindsaar <raasdnil@gmail.com> | 2010-01-19 17:09:21 +1100 |
---|---|---|
committer | Mikel Lindsaar <raasdnil@gmail.com> | 2010-01-19 17:09:21 +1100 |
commit | 001c99e75e86e38c8a6d7a9a6fcbeb970fb9c2cc (patch) | |
tree | e9fc7805adf6efc6c9c4f67a05ce26284a5ed7c8 /railties/lib/rails | |
parent | 3cb0283fb6547982b35fda1e0d4af00071c026ae (diff) | |
download | rails-001c99e75e86e38c8a6d7a9a6fcbeb970fb9c2cc.tar.gz rails-001c99e75e86e38c8a6d7a9a6fcbeb970fb9c2cc.tar.bz2 rails-001c99e75e86e38c8a6d7a9a6fcbeb970fb9c2cc.zip |
Fix up spelling in railties/lib/rails/subscriber.rb docs
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/subscriber.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/railties/lib/rails/subscriber.rb b/railties/lib/rails/subscriber.rb index e8d13babf0..11102522b0 100644 --- a/railties/lib/rails/subscriber.rb +++ b/railties/lib/rails/subscriber.rb @@ -3,10 +3,10 @@ require 'active_support/notifications' module Rails # Rails::Subscriber is an object set to consume ActiveSupport::Notifications - # on initialization with solely purpose of logging. The subscriber dispatches - # notifications to a regirested object based on its given namespace. + # on initialization with the sole purpose of logging. The subscriber dispatches + # notifications to a registered object based on it's given namespace. # - # An example would be ActiveRecord subscriber responsible for logging queries: + # An example would be an Active Record subscriber responsible for logging queries: # # module ActiveRecord # class Railtie @@ -18,16 +18,16 @@ module Rails # end # end # - # It's finally registed as: + # Which would be registed as: # # Rails::Subscriber.add :active_record, ActiveRecord::Railtie::Subscriber.new # - # So whenever a "active_record.sql" notification arrive to Rails::Subscriber, + # So whenever an +active_record.sql+ notification arrives to Rails::Subscriber, # it will properly dispatch the event (ActiveSupport::Notifications::Event) to # the sql method. # - # This is useful because it avoids spanning several subscribers just for logging - # purposes(which slows down the main thread). Besides of providing a centralized + # This avoids spanning several subscribers just for logging purposes + # (which slows down the main thread). It also provides a centralized # facility on top of Rails.logger. # # Subscriber also has some helpers to deal with logging and automatically flushes |