Skip to content

Commit

Permalink
Merge pull request brynary#7 from oggy/redis
Browse files Browse the repository at this point in the history
Redis panel patch
  • Loading branch information
pboling committed Sep 13, 2012
2 parents 0b73e1d + de10629 commit e91bd3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rack/insight/panels/redis_panel/redis_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ def call_command_with_insight(*argv)
elsif defined?(Redis::Client) # newer versions of redis-rb

Redis::Client.class_eval do
def call_with_insight(*argv)
Rack::Insight::RedisPanel.record(argv, Kernel.caller) do
call_without_insight(*argv)
def call_with_insight(command, &block)
Rack::Insight::RedisPanel.record(command, Kernel.caller) do
call_without_insight(command, &block)
end
end
end
Expand Down

0 comments on commit e91bd3c

Please sign in to comment.