diff options
author | Xavier Noria <fxn@hashref.com> | 2011-05-20 03:19:13 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-05-20 03:19:13 -0700 |
commit | 5b8bc4613c179e92f1887b9f6d80898e6dd7108c (patch) | |
tree | 4b6503500e5fde6279bacb8afd5d5b02fa41848f /activerecord/lib/active_record/base.rb | |
parent | 54823fe6b93d75a90cd627e3852669b5721fdd1f (diff) | |
parent | 159213001ae1d13d0d3eb7947c0595328ef16945 (diff) | |
download | rails-5b8bc4613c179e92f1887b9f6d80898e6dd7108c.tar.gz rails-5b8bc4613c179e92f1887b9f6d80898e6dd7108c.tar.bz2 rails-5b8bc4613c179e92f1887b9f6d80898e6dd7108c.zip |
Merge pull request #1161 from guilleiguaran/each_syntax_in_activerecord
Syntax cleanup: for in => each on ActiveRecord
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index cd16b8d3ca..30e2d1a82c 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -2018,7 +2018,7 @@ MSG def extract_callstack_for_multiparameter_attributes(pairs) attributes = { } - for pair in pairs + pairs.each do |pair| multiparameter_name, value = pair attribute_name = multiparameter_name.split("(").first attributes[attribute_name] = {} unless attributes.include?(attribute_name) |