parent
151e5744e6
commit
022cf33853
1 changed files with 2 additions and 2 deletions
|
@ -60,11 +60,11 @@ class SupportController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_commentaire
|
def create_commentaire
|
||||||
params = {
|
attributes = {
|
||||||
file: params[:file],
|
file: params[:file],
|
||||||
body: "[#{params[:subject]}]<br><br>#{params[:text]}"
|
body: "[#{params[:subject]}]<br><br>#{params[:text]}"
|
||||||
}
|
}
|
||||||
commentaire = CommentaireService.build_with_email(email, dossier, params)
|
commentaire = CommentaireService.build_with_email(email, dossier, attributes)
|
||||||
commentaire.save!
|
commentaire.save!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue