aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/per_thread_registry.rb
diff options
context:
space:
mode:
authorwangjohn <wangjohn@mit.edu>2013-04-10 09:56:40 -0400
committerwangjohn <wangjohn@mit.edu>2013-04-10 09:56:40 -0400
commit60a5ac78b05f3116e30f2e9d2c86c2ed174fc144 (patch)
treeab9f24623df47dd8a0cd9f6061875f2332f55d9c /activesupport/lib/active_support/per_thread_registry.rb
parentbb61d2defab7017807c310ac221c9e69d7f99d96 (diff)
downloadrails-60a5ac78b05f3116e30f2e9d2c86c2ed174fc144.tar.gz
rails-60a5ac78b05f3116e30f2e9d2c86c2ed174fc144.tar.bz2
rails-60a5ac78b05f3116e30f2e9d2c86c2ed174fc144.zip
Using public send instead of send for the PerThreadRegistry module.
Prevents you from accidentally calling a protected method.
Diffstat (limited to 'activesupport/lib/active_support/per_thread_registry.rb')
-rw-r--r--activesupport/lib/active_support/per_thread_registry.rb2
1 files changed, 1 insertions, 1 deletions
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