Skip to content

Commit 455c2f5

Browse files
committed
Fix #573. Replace method_exists? by respond_to?
1 parent b40edbf commit 455c2f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/onelogin/ruby-saml/attributes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def ==(other)
124124
def fetch(name)
125125
attributes.each_key do |attribute_key|
126126
if name.is_a?(Regexp)
127-
if name.method_exists? :match?
127+
if name.respond_to? :match?
128128
return self[attribute_key] if name.match?(attribute_key)
129129
else
130130
return self[attribute_key] if name.match(attribute_key)

0 commit comments

Comments
 (0)