mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 23:42:32 -05:00
add templates and submissions search
This commit is contained in:
1 parent
7f6c0af0e8
commit
53fa35fd01
12 files changed
+101
-23
No files matched your search
@@ -17,4 +17,10 @@ module Templates
|
||||
|
||||
hash
|
||||
end
|
||||
|
||||
def search(templates, keyword)
|
||||
return templates if keyword.blank?
|
||||
|
||||
templates.where(Template.arel_table[:name].lower.matches("%#{keyword.downcase}%"))
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user