diff --git a/app/controllers/my_module_comments_controller.rb b/app/controllers/my_module_comments_controller.rb index ff1e58baa..4b93ce99d 100644 --- a/app/controllers/my_module_comments_controller.rb +++ b/app/controllers/my_module_comments_controller.rb @@ -72,12 +72,12 @@ class MyModuleCommentsController < ApplicationController } format.json { render json: { - html: render_to_string({ + html: render_to_string( partial: "comment.html.erb", locals: { comment: @comment } - }), + ), date: @comment.created_at.strftime('%d.%m.%Y') }, status: :created diff --git a/app/controllers/project_comments_controller.rb b/app/controllers/project_comments_controller.rb index ed17e0a62..6f097b870 100644 --- a/app/controllers/project_comments_controller.rb +++ b/app/controllers/project_comments_controller.rb @@ -71,12 +71,12 @@ class ProjectCommentsController < ApplicationController } format.json { render json: { - html: render_to_string({ + html: render_to_string( partial: 'comment.html.erb', locals: { comment: @comment } - }), + ), date: @comment.created_at.strftime('%d.%m.%Y') }, status: :created } diff --git a/app/controllers/result_comments_controller.rb b/app/controllers/result_comments_controller.rb index 39b8c3598..ad9bf91ce 100644 --- a/app/controllers/result_comments_controller.rb +++ b/app/controllers/result_comments_controller.rb @@ -69,12 +69,12 @@ class ResultCommentsController < ApplicationController } format.json { render json: { - html: render_to_string({ + html: render_to_string( partial: "comment.html.erb", locals: { comment: @comment } - }), + ), date: @comment.created_at.strftime('%d.%m.%Y') }, status: :created diff --git a/app/controllers/step_comments_controller.rb b/app/controllers/step_comments_controller.rb index 998d9a339..674434486 100644 --- a/app/controllers/step_comments_controller.rb +++ b/app/controllers/step_comments_controller.rb @@ -73,12 +73,12 @@ class StepCommentsController < ApplicationController } format.json { render json: { - html: render_to_string({ + html: render_to_string( partial: "comment.html.erb", locals: { comment: @comment } - }), + ), date: @comment.created_at.strftime('%d.%m.%Y') }, status: :created