1
0
Fork 0
forked from OpenNeo/impress

Oops, update outfit's updated_at when adding/removing items

This bug caused outfit thumbnails to get out of date, because the
outfit's `updated_at` field is used as a cache-busting part of the URL.
This commit is contained in:
Emi Matchu 2024-02-08 10:32:35 -08:00
parent 3ab6d1e3ae
commit 118ec6aa1a

View file

@ -1,6 +1,6 @@
class ItemOutfitRelationship < ApplicationRecord
belongs_to :item
belongs_to :outfit
belongs_to :outfit, touch: true
validates_presence_of :item
end