model fix
This commit is contained in:
parent
f2d460101f
commit
9574c721b7
|
@ -7,7 +7,7 @@ class Unit
|
||||||
field :name, as: :slug_title, :localize => true
|
field :name, as: :slug_title, :localize => true
|
||||||
field :sort_number, type: Integer
|
field :sort_number, type: Integer
|
||||||
|
|
||||||
has_many :departments, :autosave => true, :dependent => :destroy
|
has_many :departments, :dependent => :destroy
|
||||||
|
|
||||||
accepts_nested_attributes_for :departments, :allow_destroy => true
|
accepts_nested_attributes_for :departments, :allow_destroy => true
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue