ldap_fluff 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ldap_fluff might be problematic. Click here for more details.
- data/lib/ldap_fluff/config.rb +2 -2
- metadata +1 -1
data/lib/ldap_fluff/config.rb
CHANGED
@@ -7,8 +7,8 @@ class LdapFluff
|
|
7
7
|
ATTRIBUTES.each { |attr| attr_reader attr }
|
8
8
|
|
9
9
|
def initialize(options)
|
10
|
-
raise ArgumentError unless options.
|
11
|
-
options = options.inject({}) { |hash, (k, v)| hash.update k.to_s => v }
|
10
|
+
raise ArgumentError unless options.respond_to?(:to_hash)
|
11
|
+
options = options.to_hash.inject({}) { |hash, (k, v)| hash.update k.to_s => v }
|
12
12
|
ATTRIBUTES.each { |attr| instance_variable_set :"@#{attr}", options[attr.to_s] }
|
13
13
|
@encryption = @encryption.to_sym if @encryption
|
14
14
|
@server_type = @server_type.to_sym if @server_type
|