From d45fd065ba5a6681982a7dd1610d28bde41450a1 Mon Sep 17 00:00:00 2001 From: Doug Puchalski Date: Thu, 24 Jan 2013 21:02:09 -0500 Subject: [PATCH] Don't disallow private methods for try --- motion/core_ext/object/try.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/motion/core_ext/object/try.rb b/motion/core_ext/object/try.rb index 47ea3bc..2a720d3 100644 --- a/motion/core_ext/object/try.rb +++ b/motion/core_ext/object/try.rb @@ -31,7 +31,7 @@ def try(*a, &b) if a.empty? && block_given? yield self else - public_send(*a, &b) + __send__(*a, &b) end end end