class ActiveLdap::Generators::ModelGenerator

def ldap_mapping(indent=' ')

def ldap_mapping(indent='  ')
  mapping = "ldap_mapping "
  mapping_options = ["dn_attribute: #{options[:dn_attribute].dump}"]
  mapping_options << "prefix: #{prefix.dump}"
  if options[:classes]
    mapping_options << "classes: #{options[:classes].inspect}"
  end
  mapping_options = mapping_options.join(",\n#{indent}#{' ' * mapping.size}")
  "#{indent}#{mapping}#{mapping_options}"
end