Avoid using to_s when performing String Interpolation

This commit is contained in:
Akshay
2014-08-14 23:50:52 +05:30
parent 5d9a389966
commit 7ef61144e7
18 changed files with 26 additions and 26 deletions

View File

@@ -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]