Project

General

Profile

« Previous | Next » 

Revision 681c944d

Added by Marc Dequènes over 14 years ago

  • ID 681c944dbc33688635c05846de88871879308359

[fix] correct broken LdapObject initialization due to the way ActiveLdap instanciate

View differences:

lib/ldap_shadows/elements/object.rb
# default
ldap_mapping :prefix => '', :classes => ['top'], :scope => :sub
def initialize(attributes = nil)
super(attributes)
# always called for instanciated objects
#
# Note: ActiveLdap uses allocate to instanciate objects, then
# call initialize only for DB-new objects, and
# call initialize_by_ldap_data for DB-loaded objects
def init_instance_variables
super
@parent_changed = false
@latest_parent_full_handle = nil

Also available in: Unified diff