mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 00:27:58 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user