From d06236c66ba57eb037448e5f7aa164133e160884 Mon Sep 17 00:00:00 2001 From: BrokenEagle Date: Fri, 22 Jan 2021 02:44:47 +0000 Subject: [PATCH] Remove unneeded available includes The indexes for these only contain instances from the user regardless of user level, so there's no need to show these. --- app/models/saved_search.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/models/saved_search.rb b/app/models/saved_search.rb index a6efcedc6..4ebe3c056 100644 --- a/app/models/saved_search.rb +++ b/app/models/saved_search.rb @@ -168,8 +168,4 @@ class SavedSearch < ApplicationRecord def disable_labels=(value) user.update(disable_categorized_saved_searches: true) if value.to_s.truthy? end - - def self.available_includes - [:user] - end end