Class: FfcrmLdap::LDAPAccess::Config
- Inherits:
-
Object
- Object
- FfcrmLdap::LDAPAccess::Config
- Defined in:
- lib/ffcrm_ldap/ldap_access.rb
Class Method Summary collapse
Class Method Details
.config ⇒ Object
58 59 60 |
# File 'lib/ffcrm_ldap/ldap_access.rb', line 58 def self.config @config ||= YAML.load_file(File.join(Rails.root, %w(config ldap.yml)))[Rails.env] end |
.method_missing(name, *args) ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/ffcrm_ldap/ldap_access.rb', line 49 def self.method_missing(name, *args) if config.has_key?(name.to_s) config[name.to_s] else super end end |