In my app controller looks pretty simple:
class ProductsController before_action :set_company def index @products = company.products.includes(:shipment)