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:
parent
5d9a389966
commit
7ef61144e7
18 changed files with 26 additions and 26 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue