I have the same problem as this guy: http://www.ruby-forum.com/topic/197440 .
I try to touch column ( :touched_at) without automatic updating :updated_at, but when viewing SQL queries, it always updates to the current time.
I thought that this could be due to the specific model in which I used it, so I tried a couple of different ones with the same result.
Does anyone know what can make it always set :updated_atwhen touching another column? touchuses write_attributeinternally, so he should not do this.
Edit:
Some clarifications ... in the Rails 2.3.5 docs it touchstates that "If the attribute name is passed, this attribute is used to touch instead of the updated_at / on attributes." But mine doesn’t act like that. Perhaps this is the case when the documents deviated from the actual state of the code?
source
share