desc and depend bulk update

This commit is contained in:
Andreas Stephanides
2014-04-04 15:09:23 +02:00
parent 87cad4b910
commit 8194defd35

View File

@@ -35,6 +35,8 @@ class Modul < ActiveRecord::Base
else
md=Modul.find(h["id"].to_i)
md.name=h["name"]
md.desc=h["desc"]
md.depend=h["depend"]
md.modulgruppen=Modulgruppe.where(:id => h["modulgruppe_ids"].map(&:to_i))
m << md
end