Use string interpolation

This commit is contained in:
gregoirenovel 2018-01-30 15:16:05 +01:00
parent c9a79b4f08
commit 25aef60354
5 changed files with 14 additions and 14 deletions

View file

@ -14,7 +14,7 @@ class Commentaire < ActiveRecord::Base
after_create :notify
def header
"#{email}, " + I18n.l(created_at.localtime, format: '%d %b %Y %H:%M')
"#{email}, #{I18n.l(created_at.localtime, format: '%d %b %Y %H:%M')}"
end
def file_url