Skip to content

Commit 38716a2

Browse files
committed
Update respond_to? for Ruby 2.0
Marshal.dump will choke on the attempt to serialize an LDAP::Entry. This change fixes that by updating the signature of respond_to? to Ruby 2.0 level.
1 parent f6e843b commit 38716a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/ldap/entry.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def to_ldif
147147
Net::LDAP::Dataset.from_entry(self).to_ldif_string
148148
end
149149

150-
def respond_to?(sym) #:nodoc:
150+
def respond_to?(sym, include_all = false) #:nodoc:
151151
return true if valid_attribute?(self.class.attribute_name(sym))
152152
return super
153153
end

0 commit comments

Comments
 (0)