mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +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…
x
Reference in New Issue
Block a user