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
1 changed files with 2 additions and 2 deletions

View File

@ -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.