Rails::Generators::NamedBase
# File lib/rails/generators/active_ldap/model/model_generator.rb, line 30 def default_prefix "ou=#{name.demodulize.pluralize}" end
# File lib/rails/generators/active_ldap/model/model_generator.rb, line 34 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
Generated with the Darkfish Rdoc Generator 2.