Add ability to filter reports by target account domain (#12154)
* Add ability to filter reports by target account domain * Reword by_target_domain label
This commit is contained in:
parent
f3a93987b6
commit
d8f96028c5
5 changed files with 20 additions and 2 deletions
|
@ -19,6 +19,8 @@ class ReportFilter
|
|||
|
||||
def scope_for(key, value)
|
||||
case key.to_sym
|
||||
when :by_target_domain
|
||||
Report.where(target_account: Account.where(domain: value))
|
||||
when :resolved
|
||||
Report.resolved
|
||||
when :account_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue