mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Avoid using to_s when performing String Interpolation
This commit is contained in:
@@ -58,12 +58,12 @@ class UserUpdater
|
||||
|
||||
USER_ATTR.each do |attribute|
|
||||
if attributes[attribute].present?
|
||||
user.send("#{attribute.to_s}=", attributes[attribute] == 'true')
|
||||
user.send("#{attribute}=", attributes[attribute] == 'true')
|
||||
end
|
||||
end
|
||||
|
||||
PROFILE_ATTR.each do |attribute|
|
||||
user_profile.send("#{attribute.to_s}=", attributes[attribute])
|
||||
user_profile.send("#{attribute}=", attributes[attribute])
|
||||
end
|
||||
|
||||
if fields = attributes[:custom_fields]
|
||||
|
||||
Reference in New Issue
Block a user