We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d102da4 commit fb9e82aCopy full SHA for fb9e82a
app/controllers/folders_controller.rb
@@ -34,15 +34,15 @@ def show
34
.where(context: 'Document')
35
.order('title ASC')
36
37
+ # TODO: can we reuse this content to skip a few queries in this controller action?
38
+ cache_linkable_content_for_each_content_type
39
+
40
# TODO: add other content types here too
41
@content = Document
42
.where(folder: @folder)
43
.includes([:user, :page_tags, :universe])
44
.order('documents.favorite DESC, documents.title ASC, documents.updated_at DESC')
45
- # TODO: can we reuse this content to skip a few queries in this controller action?
- cache_linkable_content_for_each_content_type
-
46
if @universe_scope
47
@content = @content.where(universe: @universe_scope)
48
end
0 commit comments