Displaying 1 result from an estimated 1 matches for "mydepartment".
Did you mean:
department
2009 Feb 19
3
Associated child records not created on creation of a parent.
...4.
5. @template_model = PrototypeModel.find( params
[:prototype_model][:parent_id] )
6. template_departments = @template_model.departments
7.
8. @prototype_model = PrototypeModel.new(params
[:prototype_model])
9. @prototype_model.author = current_user
10.
11. for mydepartment in template_departments
12. logger.debug "Cloning Department #{mydepartment.name}"
13.
14. newDepartment= @prototype_model.departments.build( :name =>
mydepartment.name, :description=>
mydepartment.description, :parent_id=> mydepartment.parent_id )
15. end
16...