From 978221b99c841b3b1c97ac8993e34c71cf9040f8 Mon Sep 17 00:00:00 2001 From: Oscar Del Ben Date: Sat, 14 Apr 2012 10:54:10 +0200 Subject: [PATCH] Rename notify_observers argument *arg to *args to make it more clear that the method accepts multiple arguments --- activemodel/lib/active_model/observing.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activemodel/lib/active_model/observing.rb b/activemodel/lib/active_model/observing.rb index 32f2aa46bd..29687866e3 100644 --- a/activemodel/lib/active_model/observing.rb +++ b/activemodel/lib/active_model/observing.rb @@ -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.