mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-27 10:08:11 +08:00
Fix hound warnings [SCI-557]
This commit is contained in:
parent
0c1ff06f21
commit
5be7904f5a
4 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue