Project

General

Profile

« Previous | Next » 

Revision 3a652e30

Added by Marc Dequènes about 15 years ago

  • ID 3a652e306849cb05748820cf1214bfae2211ead2

[cleanup] filter ldap object mapping better

View differences:

lib/ldap_shadows/elements/object.rb
def self.cast
super
ldap_mapping self.parameters[:mapping].reject {|key, val| self.default_parameters[:mapping].keys.include?(key)}
ldap_mapping self.parameters[:mapping].reject {|key, val| not ActiveLdap::Base::VALID_LDAP_MAPPING_OPTIONS.include?(key)}
end
def self.cast_relations

Also available in: Unified diff