# File lib/active_ldap/base.rb, line 679 def attributes=(new_attributes) return if new_attributes.nil? _schema = nil targets = remove_attributes_protected_from_mass_assignment(new_attributes) targets.each do |key, value| setter = "#{key}=" unless respond_to?(setter) _schema ||= schema attribute = _schema.attribute(key) next if attribute.id.nil? define_attribute_methods(attribute) end send(setter, value) end end