Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 331 Bytes

File metadata and controls

9 lines (6 loc) · 331 Bytes

Touch Later

提供 touch_later 方法。

原来的 touch 是一步到位,更新 updated_at 并保存进数据库。
使用 touch_later 后,操作分为了两步:1)更新 updated_at 2)保存进数据库。

通常的,它和事务(transaction)一起使用,或者是 belongs_to 并 touch 关联对象。