Subject: Intercepting the updated_at Automatic Timestamp?
Is there a way to intercept the automatic updated_at timestamp so that it only updates when certain fields of the model are updated?
For example, if I have a Page model, I'd only like updated_at to be updated when Page->content is updated. Is this possible without going the manual route and creating a separate timestamp field?
Kien LaTue Dec 21 18:27:29 -0500 2010
No, this is not possible. Updated_at wasn't really meant for that purpose so you'd need to handle this manually.
Subject: Intercepting the updated_at Automatic Timestamp?
Is there a way to intercept the automatic updated_at timestamp so that it only updates when certain fields of the model are updated?
For example, if I have a Page model, I'd only like updated_at to be updated when Page->content is updated. Is this possible without going the manual route and creating a separate timestamp field?