Permalink
Browse files

Actually passes a method name into respond_to?

  • Loading branch information...
1 parent 15cd12d commit 459c73c64a3316be8b7c92339032276d26b8ece7 @icco icco committed Apr 28, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 padrino-cache/lib/padrino-cache/store/redis.rb
View
3 padrino-cache/lib/padrino-cache/store/redis.rb
@@ -97,7 +97,8 @@ def flush
#
# @api private
def method_missing *args
- if @backend.respond_to?(name)
+ method = args[0].to_s
+ if @backend.respond_to?(method)
@backend.send(*args)
else
super

0 comments on commit 459c73c

Please sign in to comment.