small test for nccu
This commit is contained in:
parent
fdb12ae23f
commit
893c4686cb
|
@ -11,7 +11,7 @@ class Unit
|
||||||
|
|
||||||
accepts_nested_attributes_for :departments, :allow_destroy => true
|
accepts_nested_attributes_for :departments, :allow_destroy => true
|
||||||
|
|
||||||
after_save :save_departments
|
# after_save :save_departments
|
||||||
|
|
||||||
def save_departments
|
def save_departments
|
||||||
self.departments.each do |t|
|
self.departments.each do |t|
|
||||||
|
|
Loading…
Reference in New Issue