2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-08-21 19:11:18 +08:00

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

@ -1,6 +1,6 @@
require 'rate_limiter'
class EditRateLimiter < RateLimiter
def initialize(user)
super(user, "edit-post:#{Date.today.to_s}", SiteSetting.max_edits_per_day, 1.day.to_i)
super(user, "edit-post:#{Date.today}", SiteSetting.max_edits_per_day, 1.day.to_i)
end
end