I've a system which does not delete records from the database but
marks them as 'expired' and the excludes such in any view of the
current data.
Is there an easy way to override the behaviour of AR.destroy to have
it behave in this fashion or am I best off just introducing an
"expire" method instead?
I've a system which does not delete records from the database but
marks them as 'expired' and the excludes such in any view of the
current data.
Is there an easy way to override the behaviour of AR.destroy to have
it behave in this fashion or am I best off just introducing an
"expire" method instead?