aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Del Ben <info@oscardelben.com>2012-04-14 10:54:10 +0200
committerOscar Del Ben <info@oscardelben.com>2012-04-14 10:54:10 +0200
commit978221b99c841b3b1c97ac8993e34c71cf9040f8 (patch)
tree923e22c36bd7fe8d0d0ab010c88e646fd6fb18b1
parent60ac540053d5b5d32d7b349bae03f4d874a9826e (diff)
downloadrails-978221b99c841b3b1c97ac8993e34c71cf9040f8.tar.gz
rails-978221b99c841b3b1c97ac8993e34c71cf9040f8.tar.bz2
rails-978221b99c841b3b1c97ac8993e34c71cf9040f8.zip
Rename notify_observers argument *arg to *args to make it more clear
that the method accepts multiple arguments
-rw-r--r--activemodel/lib/active_model/observing.rb4
1 files 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.