From 1244aa7c5f871da5e907a39242b63a7aee3308a3 Mon Sep 17 00:00:00 2001 From: Lauro Caetano Date: Thu, 12 Dec 2013 20:19:04 -0200 Subject: Use `public_send` instead of just use `send`. --- activerecord/test/cases/relation/delegation_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'activerecord/test/cases') diff --git a/activerecord/test/cases/relation/delegation_test.rb b/activerecord/test/cases/relation/delegation_test.rb index c5ad1e8976..b56dd5e5db 100644 --- a/activerecord/test/cases/relation/delegation_test.rb +++ b/activerecord/test/cases/relation/delegation_test.rb @@ -10,15 +10,15 @@ module ActiveRecord method_arity = target.to_a.method(method).arity if method_arity.zero? - target.send(method) + target.public_send(method) elsif method_arity < 0 if method == :shuffle! - target.send(method) + target.public_send(method) else - target.send(method, 1) + target.public_send(method, 1) end elsif method_arity == 1 - target.send(method, 1) + target.public_send(method, 1) else raise NotImplementedError end -- cgit v1.2.3