1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00

change top position of product category to 0

This commit is contained in:
Du Peng 2022-07-20 11:54:46 +02:00 committed by Sylvain
parent 59748356fc
commit b53efc9850

View File

@ -8,5 +8,5 @@ class ProductCategory < ApplicationRecord
belongs_to :parent, class_name: 'ProductCategory'
has_many :children, class_name: 'ProductCategory', foreign_key: :parent_id
acts_as_list scope: :parent
acts_as_list scope: :parent, top_of_list: 0
end