Rails replace belongs_to/has_many activerecord relation in case of big amount of data

前端 未结 0 366
闹比i
闹比i 2021-01-28 05:22

In my app controller looks pretty simple:

class ProductsController
  before_action :set_company

  def index
    @products = company.products.includes(:shipment)
         


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