Ahoy! Do you like patches? Well, it''s your lucky day - ''cause there''s one here!: http://dev.rubyonrails.org/ticket/9913 The patch would allow aliasing tables so you could do something like this (contrived example - the logic probably doesn''t work quite right): ===class Post < ActiveRecord::Base has_one :rejection, :alias => :true has_one :approval, :alias => :true end class Moderation < ActiveRecord::Base belongs_to :post end class Approval < Moderation; endclass Rejection < Moderation; end rejected_posts = Post.find(:all, :include => [:rejection, :approval], :conditions => "rejection.created_at > approval.created_at") === This would make ticket #9907 a real possibility and would greatly simplify comparing STI associations to each other. ::Jack Danger --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---