lib/adauth/ad_object.rb in adauth-2.0.0pre1 vs lib/adauth/ad_object.rb in adauth-2.0.0pre2

- old
+ new

@@ -44,10 +44,10 @@ # Over rides method_missing and interacts with @ldap_object def method_missing(method, *args) if self.class::Fields.keys.include?(method) field = self.class::Fields[method] if field.is_a? Symbol - return @ldap_object.send(field).to_s + return (@ldap_object.send(field).to_s).gsub(/\"|\[|\]/, "") elsif field.is_a? Array @ldap_object.send(field.first).collect(&field.last) end else super \ No newline at end of file