diff --git a/app/controllers/concerns/collection_scoped.rb b/app/controllers/concerns/collection_scoped.rb index 6ff65baf9..8636ecd77 100644 --- a/app/controllers/concerns/collection_scoped.rb +++ b/app/controllers/concerns/collection_scoped.rb @@ -11,6 +11,6 @@ module CollectionScoped end def cards_fresh_when(cards) - fresh_when etag: [ cards, @collection.entropy_configuration, @collection.name, @collection.columns.all ] + fresh_when etag: [ cards, @collection.entropy_configuration, @collection.columns.all ] end end diff --git a/app/helpers/cards_helper.rb b/app/helpers/cards_helper.rb index 423478810..3753bcfc1 100644 --- a/app/helpers/cards_helper.rb +++ b/app/helpers/cards_helper.rb @@ -48,6 +48,6 @@ module CardsHelper end def card_preview_cache_parts(card) - [ card, card.collection.entropy_configuration, card.collection.publication, card.collection.name, card.column ] + [ card, card.collection.entropy_configuration, card.collection.publication, card.column ] end end diff --git a/app/models/collection.rb b/app/models/collection.rb index 7ccb34806..504439e2e 100644 --- a/app/models/collection.rb +++ b/app/models/collection.rb @@ -1,11 +1,10 @@ class Collection < ApplicationRecord - include AutoClosing, Accessible, Broadcastable, Entropic, Filterable, Publishable, Triageable + include AutoClosing, Accessible, Broadcastable, Cards, Entropic, Filterable, Publishable, Triageable belongs_to :creator, class_name: "User", default: -> { Current.user } has_rich_text :public_description - has_many :cards, dependent: :destroy has_many :tags, -> { distinct }, through: :cards has_many :events has_many :webhooks, dependent: :destroy