diff options
author | Oscar Del Ben <info@oscardelben.com> | 2012-04-14 10:54:10 +0200 |
---|---|---|
committer | Oscar Del Ben <info@oscardelben.com> | 2012-04-14 10:54:10 +0200 |
commit | 978221b99c841b3b1c97ac8993e34c71cf9040f8 (patch) | |
tree | 923e22c36bd7fe8d0d0ab010c88e646fd6fb18b1 /activemodel/lib | |
parent | 60ac540053d5b5d32d7b349bae03f4d874a9826e (diff) | |
download | rails-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
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/observing.rb | 4 |
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. |