Project

General

Profile

« Previous | Next » 

Revision 3f7ddbd3

Added by Marc Dequènes about 15 years ago

  • ID 3f7ddbd3d8c2d92dd22751dc88722e4d7f3820fc

[fix] check for dependency aspects for an aspect was missing

View differences:

lib/ldap_shadows/elements/aspect.rb
module Elements
class LdapAspect
include LdapElement
def self.cast_relations
deps = self.parameters[:mapping][:depend_aspects] || []
deps.each do |aspect_name|
aspect = self.shadow.get_aspect(aspect_name)
if aspect.nil?
raise PreProcessingError, _("Aspect '%s' is missing as dependency for aspect '%s'") % [aspect_name, self.handle]
end
end
end
end
end
end

Also available in: Unified diff