Permalink
Browse files

Using public send instead of send for the PerThreadRegistry module.

Prevents you from accidentally calling a protected method.
  • Loading branch information...
1 parent bb61d2d commit 60a5ac78b05f3116e30f2e9d2c86c2ed174fc144 @wangjohn wangjohn committed Apr 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/per_thread_registry.rb
@@ -35,7 +35,7 @@ def instance
protected
def method_missing(*args, &block)
- instance.send(*args, &block)
+ instance.public_send(*args, &block)
end
end
end

0 comments on commit 60a5ac7

Please sign in to comment.