teamspaces / web

Web & API – Spaces is knowledge management for teams.
0 stars 0 forks source link

Page save updated-at time #221

Closed emmanuelmillionaer closed 7 years ago

emmanuelmillionaer commented 7 years ago

What

When page-content get's updated, update related page updated_at-time as well


Related Links

touch does not perform callbacks etc. http://apidock.com/rails/v4.2.7/ActiveRecord/Persistence/touch

And uses update_all under the hood: http://apidock.com/rails/v4.0.2/ActiveRecord/Relation/update_all

(From the docs) This method constructs a single SQL UPDATE statement and sends it straight to the database. It does not instantiate the involved models and it does not trigger Active Record callbacks or validations.

Gif