mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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`.
This commit is contained in:
parent
26a202a91b
commit
f8e132d362
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue