Skip to content

Commit

Permalink
this warning is already annoying me, sorry
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed May 16, 2011
1 parent f710d7e commit fa6dfcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/redis/namespace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ def method_missing(command, *args, &block)
handling = COMMANDS[command.to_s] ||
COMMANDS[ALIASES[command.to_s]]

# redis-namespace does not know how to handle this command.
# Passing it to @redis as is.
if handling.nil?
warn("redis-namespace does not know how to handle '#{command}' command.
Passing it to redis as is.")
return @redis.send(command, *args, &block)
end

Expand Down

0 comments on commit fa6dfcd

Please sign in to comment.