DEV: move send => public_send in lib folder

This handles most of the cases in `lib` where we were using send instead
of public_send
This commit is contained in:
Sam Saffron
2019-05-07 12:22:37 +10:00
parent 451f7842ff
commit e2bcf55077
13 changed files with 19 additions and 18 deletions

View File

@@ -25,7 +25,7 @@ module ActiveSupport
found = true
data = cache.fetch(arguments) { found = false }
unless found
cache[arguments] = data = send(uncached, *arguments)
cache[arguments] = data = public_send(uncached, *arguments)
end
# so cache is never corrupted
data.dup
@@ -48,7 +48,7 @@ module ActiveSupport
define_method(method_name) do |*arguments|
ActiveSupport::Inflector.clear_memoize!
send(orig, *arguments)
public_send(orig, *arguments)
end
end
end