Skip to content

Commit

Permalink
Changing the signature of respond_to? to conform to the correct param…
Browse files Browse the repository at this point in the history
…eters
  • Loading branch information
Andrew Gale authored and defunkt committed Aug 15, 2011
1 parent 61b454d commit 00b472a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/redis/namespace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ def type(key)

alias_method :self_respond_to?, :respond_to?

def respond_to?(command)
if self_respond_to?(command)
def respond_to?(*args)
if self_respond_to?(*args)
true
else
@redis.respond_to?(command)
@redis.respond_to?(*args)
end
end

Expand Down

0 comments on commit 00b472a

Please sign in to comment.