acts_as_list nested scope

Here’s what I’m trying to do:

class Model < AR::Base acts_as_list :scope => [:key_one_id, :key_two_id, :key_three_id] end

with the idea being that there are these three references from this table (one of them being optional) that define the list. I don’t think acts as nested set works in this situation because I’m still just dealing with a single list per these three keys; there are no children or parents to speak of.

Is this easily possible or should I look into changing acts_as_list to work this way?

Jason

Actually, nevermind. I was going about the problem the wrong way. Proper way:

class Model < AR::Base has_many :model_items

also holds :key_one_id, :key_two_id, :key_three_id

end

class ModelItem < AR::Base

belongs_to :model acts_as_list :scope => :model_id end

Much, much cleaner.

Jason