Fix hound warnings [SCI-557]

This commit is contained in:
Oleksii Kriuchykhin 2016-10-21 09:37:24 +02:00
parent 0c1ff06f21
commit 5be7904f5a
4 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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
}

View file

@ -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

View file

@ -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