Added search to admin reports page

• Added:
- search to admin reports page
This commit is contained in:
mgabdev
2021-01-14 14:17:05 -05:00
parent 7c6ef8bb9d
commit 285aa17024
3 changed files with 13 additions and 0 deletions

View File

@@ -23,6 +23,8 @@ class ReportFilter
Report.where(account_id: value)
when :target_account_id
Report.where(target_account_id: value)
when :comment
Report.where(comment: value)
else
raise "Unknown filter: #{key}"
end