diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-05-19 01:23:14 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-05-19 01:25:31 -0500 |
commit | ec1993c33f8b1493cc4f55102d9c4dee178306a2 (patch) | |
tree | 02d186269f4ec3327b912a331d0fa813d1a61bcd /activemodel/lib/active_model | |
parent | a921cab621cb6932f6e88979f7c6650d3c5952b2 (diff) | |
download | rails-ec1993c33f8b1493cc4f55102d9c4dee178306a2.tar.gz rails-ec1993c33f8b1493cc4f55102d9c4dee178306a2.tar.bz2 rails-ec1993c33f8b1493cc4f55102d9c4dee178306a2.zip |
Prefer each instead of for in
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r-- | activemodel/lib/active_model/observing.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activemodel/lib/active_model/observing.rb b/activemodel/lib/active_model/observing.rb index 4682ae07ef..b94ad4bb9b 100644 --- a/activemodel/lib/active_model/observing.rb +++ b/activemodel/lib/active_model/observing.rb @@ -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. |