Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Actually passes a method name into respond_to?

  • Loading branch information...
commit 459c73c64a3316be8b7c92339032276d26b8ece7 1 parent 15cd12d
@icco icco authored
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.
Something went wrong with that request. Please try again.