Skip to content

Commit

Permalink
fix reload
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Jan 5, 2025
1 parent 207767b commit ac39268
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/controllers/factory/admin/taxon/products_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ def index
q_params.merge! default_params
q_params.merge! params.permit(:name)

@products = @taxon.products.includes(:parts, :brand, :taxon_components, :product_components, :productions, logo_attachment: :blob, covers_attachments: :blob).default_where(q_params).order(position: :asc).page(params[:page])
@products = @taxon.products.includes(
:brand,
:product_components,
:productions,
logo_attachment: :blob,
covers_attachments: :blob
).default_where(q_params).order(position: :asc).page(params[:page])
end

def buy
Expand Down

0 comments on commit ac39268

Please sign in to comment.