model fix

This commit is contained in:
Harry Bomrah 2015-09-24 15:41:36 +08:00
parent f2d460101f
commit 9574c721b7
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ class Unit
field :name, as: :slug_title, :localize => true
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