We're going to be changing our system soon to implement the concept of
a trash can. Basically when user deletes things they will get flagged
as 'trash' and won't be deleted until the user goes into the trash
area and explicitly deletes them. The way we'll do this is set a field
in the tables, say 'trash' to 1 if trashed, 0 if active.
What I don't want to have to do though is go back and change every
to something like
Posts.find(:all, :conditions => 'trash = 0')
as I'm sure it will get very messy. Is there someway to do this in the
model so that generally only active posts get returned while the
trashed stuff requires a specific call - say something like
Thanks for any help on this.