From 05609f472912cc841d99e3b0adb18c4f3d0eb9ae Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 8 May 2013 16:25:43 -0700 Subject: use public send on the scope parameters --- activesupport/lib/active_support/callbacks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index 666126d199..6fe7e0f4fb 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -321,7 +321,7 @@ module ActiveSupport _normalize_legacy_filter(kind, filter) scopes = Array(chain.config[:scope]) - method_to_call = scopes.map{ |s| send(s) }.join("_") + method_to_call = scopes.map{ |s| public_send(s) }.join("_") @klass.class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1 def #{method_name}(&blk) -- cgit v1.2.3