Project

General

Profile

« Previous | Next » 

Revision 1d23b8e8

Added by Marc Dequènes about 15 years ago

  • ID 1d23b8e8c300774b7bfa8c47cc07619e9923fd95

[evol] improve config #5 (check for missing foreign object in relations)

View differences:

lib/ldap_shadows/controller.rb
obj_relations_info = {}
obj_rel.each_pair do |field_name, rel|
foreign_klass = find_klass(rel[:object])
if foreign_klass.nil?
STDERR.puts "Relation '%s' for object '%s' is impossible: foreign object '%s' is missing" % [field_name, obj_name, rel[:object]]
exit 1
end
rel[:class_name] = foreign_klass.to_s
case rel[:type]

Also available in: Unified diff