From 6c1c64164c8aeeba73c96e4842f3ca56c9637fd8 Mon Sep 17 00:00:00 2001 From: elz Date: Mon, 1 Sep 2014 17:44:17 -0400 Subject: [PATCH] Fix association name on cache expiration --- app/models/work.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/work.rb b/app/models/work.rb index 314431ea21d..ef08e46f06d 100755 --- a/app/models/work.rb +++ b/app/models/work.rb @@ -261,7 +261,7 @@ def self.successful_reindex(ids) group(:filter_id). value_of(:filter_id) - collection_ids = CollectionItem.where(collectible_id: ids, collectible_type: 'Work'). + collection_ids = CollectionItem.where(item_id: ids, item_type: 'Work'). group(:collection_id). value_of(:collection_id)