DEV: more send -> public_send changes

This is a work in progress commit for more send to public_send conversions

Also adds some comments for cases where we need to keep send
This commit is contained in:
Sam Saffron
2019-05-07 11:57:55 +10:00
parent 61cc0f8c5f
commit cac80cdc3b
12 changed files with 16 additions and 10 deletions

View File

@ -27,7 +27,7 @@ class UserSerializer < BasicUserSerializer
method_name = "include_#{attr}?"
define_method(method_name) do
return false if scope.restrict_user_fields?(object)
send(attr).present?
public_send(attr).present?
end
end
end