Skip to content

Commit

Permalink
Merge pull request #5 from oggy/rack-insight
Browse files Browse the repository at this point in the history
Call original Redis::Client#call in redis extension.
  • Loading branch information
pboling committed Sep 13, 2012
2 parents bd8720d + b7cf279 commit 1e3ced0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rack/insight/panels/redis_panel/redis_extension.rb
Expand Up @@ -13,6 +13,9 @@ def call_command_with_insight(*argv)

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

Expand Down

0 comments on commit 1e3ced0

Please sign in to comment.