Use string interpolation
This commit is contained in:
parent
c9a79b4f08
commit
25aef60354
5 changed files with 14 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue