Sha256: 0544e97d5a52abf1923d5e835bfc9665127c03109384c5c4532b10073b7b4c9a
Contents?: true
Size: 521 Bytes
Versions: 1
Compression:
Stored size: 521 Bytes
Contents
require_library_or_gem 'active_ldap' ActiveLdap::Base.logger ||= RAILS_DEFAULT_LOGGER ldap_configuration_file = File.join(RAILS_ROOT, 'config', 'ldap.yml') if File.exist?(ldap_configuration_file) configurations = YAML::load(ERB.new(IO.read(ldap_configuration_file)).result) ActiveLdap::Base.configurations = configurations ActiveLdap::Base.establish_connection else message = "You should run 'script/generator scaffold_al' " + "to make #{ldap_configuration_file}" ActiveLdap::Base.logger.error(message) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-activeldap-0.8.2 | rails/plugin/active_ldap/init.rb |