mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
optimize search
This commit is contained in:
1 parent
721172c980
commit
506609f3cd
3 files changed
+27
-6
No files matched your search
@@ -15,7 +15,7 @@ class TemplatesSharedController < ApplicationController
|
||||
@templates = @templates.preload(:author, :template_accesses, :template_sharings)
|
||||
.order(id: :desc)
|
||||
|
||||
@templates = Templates.search(current_user, @templates, params[:q])
|
||||
@templates = Templates.search_shared(current_user, @templates, params[:q])
|
||||
|
||||
@pagy, @templates = pagy_auto(@templates, limit: 12)
|
||||
|
||||
|
||||
Reference in new issue
Block a user