forked from bofh/fetsite
desc and depend bulk update
This commit is contained in:
@@ -35,6 +35,8 @@ class Modul < ActiveRecord::Base
|
|||||||
else
|
else
|
||||||
md=Modul.find(h["id"].to_i)
|
md=Modul.find(h["id"].to_i)
|
||||||
md.name=h["name"]
|
md.name=h["name"]
|
||||||
|
md.desc=h["desc"]
|
||||||
|
md.depend=h["depend"]
|
||||||
md.modulgruppen=Modulgruppe.where(:id => h["modulgruppe_ids"].map(&:to_i))
|
md.modulgruppen=Modulgruppe.where(:id => h["modulgruppe_ids"].map(&:to_i))
|
||||||
m << md
|
m << md
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user