Skip to content

Commit

Permalink
Fixing replace method to remove the annoying 'to_a will be obsolete…
Browse files Browse the repository at this point in the history
…' message
  • Loading branch information
serebryakov committed May 27, 2010
1 parent 5ea65d6 commit d9f1428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lib/associations/has_many.rb
Expand Up @@ -14,7 +14,7 @@ def replace(objects)
objects = [objects]
end

new_objects = filter(objects.to_a)
new_objects = filter(objects)
return self if new_objects.empty?

new_objects.each do |child|
Expand Down

0 comments on commit d9f1428

Please sign in to comment.