Permalink
Browse files

Rename notify_observers argument *arg to *args to make it more clear

that the method accepts multiple arguments
  • Loading branch information...
1 parent 60ac540 commit 978221b99c841b3b1c97ac8993e34c71cf9040f8 @oscardelben oscardelben committed Apr 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/lib/active_model/observing.rb
View
4 activemodel/lib/active_model/observing.rb
@@ -69,8 +69,8 @@ def add_observer(observer)
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.

0 comments on commit 978221b

Please sign in to comment.