updated_on broken

Hi,

I just noticed that updated_on is not working anymore on any of my
models. I don't know what happened :frowning: . Hower, when I create a new
record, created_on is still working.

Any ideas what could be the cause?

Greetz

Quoting Maarten Porters <rails-mailing-list@andreas-s.net>:

Hi,

I just noticed that updated_on is not working anymore on any of my
models. I don't know what happened :frowning: . Hower, when I create a new
record, created_on is still working.

Any ideas what could be the cause?

Did you just update to Rails 2.1? Only changed attributes are written on
save. If no attributes are changed, then nothing is written to the database,
not even updated_on/updated_at. Of course, setting updated_at = Time.now will
force a change (not sure what the equivalent is for updated_on).

HTH,
  Jeffrey

Hey Jeffrey,

I did indeed update to rails 2.1 recently ... It really makes sense
because I was probably updating associated models. Forcing updated_on =
Time.now fixed the problem.

Thanks Jeffrey