This project is archived and is in readonly mode.
Fix options hash mutation in AssociationCollection
-
Brennan Dunn
Messed up formatting.
options = { :order => 'updated_at desc' } Section.first.articles.find(:all, options) options # => {:order=>"updated_at desc, created_at desc", :conditions=>"`articles`.section_id = 2", :limit=>nil, :select=>nil, :group=>nil, :joins=>nil, :readonly=>nil, :offset=>nil, :include=>:_route} -
Pratik
- State changed from new to wontfix
This is the same behavior as AR::Base.find(). You should just call .dup yourself before you supply find() with a hash.
Thanks.
