mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Rename notify_observers argument *arg to *args to make it more clear
that the method accepts multiple arguments
This commit is contained in:
parent
60ac540053
commit
978221b99c
1 changed files with 2 additions and 2 deletions
|
@ -69,8 +69,8 @@ module ActiveModel
|
|||
end
|
||||
|
||||
# Notify list of observers of a change.
|
||||
def notify_observers(*arg)
|
||||
observer_instances.each { |observer| observer.update(*arg) }
|
||||
def notify_observers(*args)
|
||||
observer_instances.each { |observer| observer.update(*args) }
|
||||
end
|
||||
|
||||
# Total number of observers.
|
||||
|
|
Loading…
Reference in a new issue