diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-08 15:23:54 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-08 15:23:54 -0700 |
commit | fe7f4b4bba4addfe2bbcb32fa67a6d9930811386 (patch) | |
tree | 7a3b14d2ba28153e2dc769dbe2ab7cdcab310611 | |
parent | 7d89a9f00a55f545cf027d1d81c22eb3e9eab6d0 (diff) | |
download | rails-fe7f4b4bba4addfe2bbcb32fa67a6d9930811386.tar.gz rails-fe7f4b4bba4addfe2bbcb32fa67a6d9930811386.tar.bz2 rails-fe7f4b4bba4addfe2bbcb32fa67a6d9930811386.zip |
using strings as scopes is not used anywhere, so remove it
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |