31
I get a resultset from a Rails find query. I want to iterate over that resultset and depending on certain criteria drop records from that resultset before passing it on for further processing. The additional criteria are external to the data held in the database and hence I can't include them in the original 'find' query.
Note I don't want to delete any records from the database just remove them from the resultset.
Please can someone give me the code to do that.