Active record group_by with each loop rails

后端 未结 0 1726
旧巷少年郎
旧巷少年郎 2020-12-29 00:19

I am applying group by on active records and then do each to access the records from hash.

Following is my code

invoice_transactions.group_by(&:pay         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题