1
0
Fork 0
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:
Oscar Del Ben 2012-04-14 10:54:10 +02:00
parent 60ac540053
commit 978221b99c

View file

@ -69,8 +69,8 @@ module ActiveModel
end end
# Notify list of observers of a change. # Notify list of observers of a change.
def notify_observers(*arg) def notify_observers(*args)
observer_instances.each { |observer| observer.update(*arg) } observer_instances.each { |observer| observer.update(*args) }
end end
# Total number of observers. # Total number of observers.