Skip to content

Commit

Permalink
fix add_namespace methods in case of nested array args
Browse files Browse the repository at this point in the history
remove binding.pry
  • Loading branch information
lastcat committed Oct 13, 2015
1 parent 4479a96 commit 7722b5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/redis/namespace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ def call_with_namespace(command, *args, &block)
# Add the namespace to any parameters that are keys.
case before
when :first
args.flatten!
args[0] = add_namespace(args[0]) if args[0]
when :all
args = add_namespace(args)
Expand Down

0 comments on commit 7722b5b

Please sign in to comment.