mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -05:00
fulltext search
This commit is contained in:
1 parent
9d1860f038
commit
33811945be
36 files changed
+682
-25
No files matched your search
@@ -5,7 +5,7 @@ class TemplatesArchivedController < ApplicationController
|
||||
|
||||
def index
|
||||
@templates = @templates.where.not(archived_at: nil).preload(:author, :folder, :template_accesses).order(id: :desc)
|
||||
@templates = Templates.search(@templates, params[:q])
|
||||
@templates = Templates.search(current_user, @templates, params[:q])
|
||||
|
||||
@pagy, @templates = pagy_auto(@templates, limit: 12)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user