Sha256: e35e4a7a7e1a87c46e078b1d8daa2c5cb8a78bade0e3afc24bdf660e8daf1aae
Contents?: true
Size: 647 Bytes
Versions: 1
Compression:
Stored size: 647 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 ActiveLdap::Base.class_eval do format = _("You should run 'script/generator scaffold_al' to make %s.") logger.error(format % ldap_configuration_file) end end if ActiveLdap.const_defined?(:Helper) class ActionView::Base include ActiveLdap::Helper end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-activeldap-0.8.3.1 | rails/plugin/active_ldap/init.rb |