Hello,
Is there a way to add automatic condition to all active record find methods?
I have an attribute in all my tables something like "effective_end_date" so that I don't delete records but I keep them by setting effective_end_date so I want to put condition is all my find queries effective_end_date Is null or effective_end_date > Time.now. I don't want to type this for every single query so I was wondering if it's possible to automate it.
Thanks,
Tam