Browse files

no more warning interpreted as argument prefix on association_preload.rb

  • Loading branch information...
1 parent b4b158e commit b25c41e6d884372f7d70801f832e24dbff3e9077 @spastorino spastorino committed with Yehuda Katz Feb 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/association_preload.rb
View
2 activerecord/lib/active_record/association_preload.rb
@@ -126,7 +126,7 @@ def add_preloaded_records_to_collection(parent_records, reflection_name, associa
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

0 comments on commit b25c41e

Please sign in to comment.