From 60a5ac78b05f3116e30f2e9d2c86c2ed174fc144 Mon Sep 17 00:00:00 2001 From: wangjohn Date: Wed, 10 Apr 2013 09:56:40 -0400 Subject: Using public send instead of send for the PerThreadRegistry module. Prevents you from accidentally calling a protected method. --- activesupport/lib/active_support/per_thread_registry.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/per_thread_registry.rb') diff --git a/activesupport/lib/active_support/per_thread_registry.rb b/activesupport/lib/active_support/per_thread_registry.rb index b89ce2cbeb..fb9a4c0e33 100644 --- a/activesupport/lib/active_support/per_thread_registry.rb +++ b/activesupport/lib/active_support/per_thread_registry.rb @@ -35,7 +35,7 @@ module ActiveSupport protected def method_missing(*args, &block) - instance.send(*args, &block) + instance.public_send(*args, &block) end end end -- cgit v1.2.3