diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-02-26 20:37:26 -0200 |
---|---|---|
committer | Yehuda Katz <yehudakatz@YK.local> | 2010-02-26 14:54:10 -0800 |
commit | b25c41e6d884372f7d70801f832e24dbff3e9077 (patch) | |
tree | eb8993e990fe5b205c048f54dbd60a6b70b891e8 /activerecord/lib/active_record | |
parent | b4b158ee100b88c84178095082959a07c2621870 (diff) | |
download | rails-b25c41e6d884372f7d70801f832e24dbff3e9077.tar.gz rails-b25c41e6d884372f7d70801f832e24dbff3e9077.tar.bz2 rails-b25c41e6d884372f7d70801f832e24dbff3e9077.zip |
no more warning interpreted as argument prefix on association_preload.rb
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/association_preload.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/association_preload.rb b/activerecord/lib/active_record/association_preload.rb index a5b06460fe..6725d4e88b 100644 --- a/activerecord/lib/active_record/association_preload.rb +++ b/activerecord/lib/active_record/association_preload.rb @@ -126,7 +126,7 @@ module ActiveRecord parent_records.each do |parent_record| association_proxy = parent_record.send(reflection_name) association_proxy.loaded - association_proxy.target.push *Array.wrap(associated_record) + association_proxy.target.push(*Array.wrap(associated_record)) association_proxy.__send__(:set_inverse_instance, associated_record, parent_record) end |