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:
parent
59748356fc
commit
b53efc9850
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user