From 5be7904f5a3c674b29bdec8a9841188cb90655bd Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Fri, 21 Oct 2016 09:37:24 +0200 Subject: [PATCH] Fix hound warnings [SCI-557] --- app/controllers/my_module_comments_controller.rb | 4 ++-- app/controllers/project_comments_controller.rb | 4 ++-- app/controllers/result_comments_controller.rb | 4 ++-- app/controllers/step_comments_controller.rb | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) 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