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:
parent
a921cab621
commit
ec1993c33f
1 changed files with 1 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue