Add additional eager loading annotations
This commit is contained in:
parent
39aff78f11
commit
1550eedb5a
6 changed files with 9 additions and 9 deletions
|
|
@ -73,7 +73,7 @@
|
|||
- FinancialTransactionClass.sorted.each do |fc|
|
||||
%th
|
||||
= fc.display
|
||||
- for ft in current_user.ordergroup.financial_transactions.limit(5).order('created_on DESC')
|
||||
- for ft in current_user.ordergroup.financial_transactions.includes(:financial_transaction_type, :user).limit(5).order('created_on DESC')
|
||||
%tr
|
||||
%td= format_time(ft.created_on)
|
||||
%td= h(show_user(ft.user))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue