I'd like to define associations based on previously defined
associations:

class Store
  one_to_many :items
  one_to_many :new_items, :association => :items, :conditions =>
{:added_on > Time.now - 30.days}
  one_to_many :featured_new_items, :association
=> :new_items, :conditions => {:is_featured => 1}

  # ...
end

This would create new_items, new_items_dataset, add_new_item,
featured_new_items, featured_new_items_dataset, etc.

Shawn

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to