# File lib/active_ldap/configuration.rb, line 101 def merge_configuration(user_configuration, target=self) configuration = default_configuration prepare_configuration(user_configuration).each do |key, value| case key when :base # Scrub before inserting target.base = value.gsub(/['}{#]/, '') when :scope, :ldap_scope if key == :ldap_scope logger.warning do _(":ldap_scope configuration option is deprecated. " \ "Use :scope instead.") end end target.scope = value configuration[:scope] = value else configuration[key] = value end end configuration end