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:
parent
3ab6d1e3ae
commit
118ec6aa1a
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
class ItemOutfitRelationship < ApplicationRecord
|
||||
belongs_to :item
|
||||
belongs_to :outfit
|
||||
belongs_to :outfit, touch: true
|
||||
|
||||
validates_presence_of :item
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue