Avoid using to_s when performing String Interpolation

This commit is contained in:
Akshay
2014-08-14 23:55:27 +05:30
parent 5d9a389966
commit 7ef61144e7
18 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ class Promotion
trust_key = TrustLevel.levels[@user.trust_level]
review_method = :"review_#{trust_key.to_s}"
review_method = :"review_#{trust_key}"
return send(review_method) if respond_to?(review_method)
false