Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Using public send instead of send for the PerThreadRegistry module.

Prevents you from accidentally calling a protected method.
  • Loading branch information...
commit 60a5ac78b05f3116e30f2e9d2c86c2ed174fc144 1 parent bb61d2d
@wangjohn wangjohn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/per_thread_registry.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.