Displaying 1 result from an estimated 1 matches for "lionsb".
Did you mean:
lions
2009 Feb 19
1
ActiveRecord-2.2.2, association preloading, joins and order parameter weirdness
Hello RoR Groupies,
I''m seeing some weird ActiveRecord-2.2.2 SQL generation when doing
eager association/preloading and using joins and ordering by said
join table.
Here''s an example:
class Photo < ActiveRecord::Base
end
class User < ActiveRecord::Base
has_one :headshot, :class_name => "Photo"
end
class Mail < ActiveRecord::Base
belongs_to :user
end