search for: is_viewable

Displaying 1 result from an estimated 1 matches for "is_viewable".

2006 Jan 09
3
Selecting a subset of a table with DRY
Hello, I have table called ''listings.'' There are a certain combination of properties which make a listing viewable (e.g., it is confirmed, has been authorized, hasn''t expired, etc.). Each listing has one and only one category. I want to be able to do things like Listing.find_viewable(...) and Category.find(...).viewable_listings, but I see no way to do this