1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Prefer each instead of for in

This commit is contained in:
Guillermo Iguaran 2011-05-19 01:23:14 -05:00
parent a921cab621
commit ec1993c33f

View file

@ -71,9 +71,7 @@ module ActiveModel
# Notify list of observers of a change.
def notify_observers(*arg)
for observer in observer_instances
observer.update(*arg)
end
observer_instances.each { |observer| observer.update(*arg) }
end
# Total number of observers.