app/models/guide.rb in mumuki-laboratory-5.7.0 vs app/models/guide.rb in mumuki-laboratory-5.8.0

- old
+ new

@@ -56,10 +56,10 @@ def done_for?(user) stats_for(user).done? end def import_from_json!(json) - self.assign_attributes json.except('exercises', 'language', 'id_format', 'id', 'teacher_info', 'collaborators') + self.assign_attributes whitelist_attributes(json, except: ['id']) self.language = Language.for_name(json['language']) self.save! json['exercises'].each_with_index do |e, i| exercise = Exercise.find_by(guide_id: self.id, bibliotheca_id: e['id'])