Use double quotes inside string interpolation

This commit is contained in:
Javi Martín
2019-03-25 13:29:58 +01:00
parent d894d24bff
commit 4c35df4812
35 changed files with 54 additions and 54 deletions

View File

@@ -24,6 +24,6 @@ class StatsController < ApplicationController
private
def daily_cache(key, &block)
Rails.cache.fetch("public_stats/#{Time.current.strftime('%Y-%m-%d')}/#{key}", &block)
Rails.cache.fetch("public_stats/#{Time.current.strftime("%Y-%m-%d")}/#{key}", &block)
end
end