mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
Avoid using to_s when performing String Interpolation
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user