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
|
@ -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 New Issue