I have an app where I have Users, users upload images, post blog
comments, etc. All has been fine until we now need to disable a user.
Which means all calls to User.find_by_id() now need to exclude any
disabled users. Also searches for such things as photos and blog
comments need to exlude those belonging to disabled users.
Aside from going through the whole application and addition conditions
to calls such as find_by_id (and other such searches), is there some
clean way that I could add this requirement? I simply need to exclude
user, comment and photo searches of disabled users.
Hope this makes sense.
Any help would be appreciated.