aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAlberto Almagro <albertoalmagro@gmail.com>2018-10-21 17:43:34 +0200
committerAlberto Almagro <albertoalmagro@gmail.com>2018-10-21 17:43:34 +0200
commitf8e132d362742ac4a21556732cd0e1cb1ab7427c (patch)
treeacdac9115675a642992cab91efc0271bcbb626aa /activesupport
parent26a202a91b5a4754be5e3e137c390786ec977e56 (diff)
downloadrails-f8e132d362742ac4a21556732cd0e1cb1ab7427c.tar.gz
rails-f8e132d362742ac4a21556732cd0e1cb1ab7427c.tar.bz2
rails-f8e132d362742ac4a21556732cd0e1cb1ab7427c.zip
Rename event variable
Improve variable naming by renaming from `e` to `event`. The arguments to rename this are: * The naming `e` is usually a convention used for exceptions. * No other method in this class uses the naming `e`. All other methods are using `event`.
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/subscriber.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/subscriber.rb b/activesupport/lib/active_support/subscriber.rb
index 9562149f8d..f3e902f9dd 100644
--- a/activesupport/lib/active_support/subscriber.rb
+++ b/activesupport/lib/active_support/subscriber.rb
@@ -79,12 +79,12 @@ module ActiveSupport
end
def start(name, id, payload)
- e = ActiveSupport::Notifications::Event.new(name, nil, nil, id, payload)
- e.start!
+ event = ActiveSupport::Notifications::Event.new(name, nil, nil, id, payload)
+ event.start!
parent = event_stack.last
- parent << e if parent
+ parent << event if parent
- event_stack.push e
+ event_stack.push event
end
def finish(name, id, payload)