diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-08 16:25:43 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-08 16:25:43 -0700 |
commit | 05609f472912cc841d99e3b0adb18c4f3d0eb9ae (patch) | |
tree | b4b0771adca70fbdae7fd3bb6faf8a85ed19e817 /activesupport/lib/active_support | |
parent | 1d6ac2246255d33eb9e4f1b1237c3b5d59ad2bde (diff) | |
download | rails-05609f472912cc841d99e3b0adb18c4f3d0eb9ae.tar.gz rails-05609f472912cc841d99e3b0adb18c4f3d0eb9ae.tar.bz2 rails-05609f472912cc841d99e3b0adb18c4f3d0eb9ae.zip |
use public send on the scope parameters
Diffstat (limited to 'activesupport/lib/active_support')
-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 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) |