AR bugs solved

Hi, guys!

Since I don’t want to spam #rails-contrib with the same tickets again and again, here you have the list of tickets I’ve been working on during the last couple of weeks. They solve several edge cases in AR and some of them also remove some duplication. Feedback, comments, +1s are welcome :slight_smile:

has_many :through :uniq gets ignored when .find(:all) called
http://dev.rubyonrails.org/ticket/9407

validates_uniqueness_of doesn’t work under with_scope
http://dev.rubyonrails.org/ticket/9235

Problem in Rails > 2.0 when overloading a find_by_X method.
http://dev.rubyonrails.org/ticket/10831

Finds scoped on a hm:t over a join table fails when including an association over that same join table
http://dev.rubyonrails.org/ticket/7310

validates_length_of using :within doesn’t work with associations (or non strings)
(This one is already verified)
http://dev.rubyonrails.org/ticket/11295

Thanks!

Luismi Cavallé

Hi, guys!

Here I am again with a list of AR patches "for your consideration" :wink: Thanks!

HABTM error when eagerly loading the other side of the association
http://dev.rubyonrails.org/ticket/11490

Problem when overloading a find_by_X method (revisited)
http://dev.rubyonrails.org/ticket/10831

:uniq option of a habtm association is ignored when find is called
http://dev.rubyonrails.org/ticket/11488

Cheers,

Luismi Cavallé