Project

General

Profile

« Previous | Next » 

Revision f25d0aed

Added by Marc Dequènes over 14 years ago

  • ID f25d0aed079fd07a63406f33f9080966e6a84151

[fix/evol] ensure a shadow/object/aspect is not cast(/post-cast) multiple times, and btw correct the raise_error() method

View differences:

lib/ldap_shadows/elements/object.rb
ldap_mapping :prefix => '', :classes => ['top'], :scope => :sub
def self.cast
super
ldap_mapping self.parameters[:mapping]
end
def self.cast_relations
super
object_rel = {}
object_rel.merge!(self.parameters[:relations]) if self.parameters.include?(:relations)
if self.parameters[:presentation].has_key?(:allowed_aspects)

Also available in: Unified diff