Permalink
Browse files

Merge pull request #5842 from oscardelben/refactoring_notify_observers

Rename notify_observers argument *arg to *args to make it more clear
  • Loading branch information...
2 parents d1f4cda + 978221b commit f707f6864178d2f47db5f8822d0d19077004a45a @spastorino spastorino 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 f707f68

Please sign in to comment.