2
0

Rename cache_* methods to preload_* in controller concern (#30209)

This commit is contained in:
Matt Jankowski
2024-05-16 04:03:46 -04:00
committed by GitHub
parent f0d6dc4519
commit 65e82211cd
19 changed files with 56 additions and 54 deletions

View File

@@ -13,11 +13,11 @@ class Api::V1::BookmarksController < Api::BaseController
private
def load_statuses
cached_bookmarks
preloaded_bookmarks
end
def cached_bookmarks
cache_collection(results.map(&:status), Status)
def preloaded_bookmarks
preload_collection(results.map(&:status), Status)
end
def results