From fe7f4b4bba4addfe2bbcb32fa67a6d9930811386 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 8 May 2013 15:23:54 -0700 Subject: using strings as scopes is not used anywhere, so remove it --- activesupport/lib/active_support/callbacks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index e948314be7..666126d199 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| s.is_a?(Symbol) ? send(s) : s }.join("_") + method_to_call = scopes.map{ |s| send(s) }.join("_") @klass.class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1 def #{method_name}(&blk) -- cgit v1.2.3