mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 23:16:23 +02:00
Moved switch user method to accounts
This commit is contained in:
parent
6c9fb2b025
commit
de5872fb40
5 changed files with 26 additions and 23 deletions
|
@ -11,6 +11,7 @@ module Repp
|
|||
q = records.ransack(search_params)
|
||||
q.sorts = 'created_at desc' if q.sorts.empty?
|
||||
invoices = q.result(distinct: true)
|
||||
|
||||
limited_invoices = invoices.limit(limit).offset(offset)
|
||||
.includes(:items, :account_activity, :buyer)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue