mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 05:34:55 +08:00
Remove unneeded validation calls [SCI-1090]
This commit is contained in:
parent
0f8336e5a5
commit
456934464a
4 changed files with 4 additions and 4 deletions
|
@ -50,7 +50,7 @@ class MyModuleCommentsController < ApplicationController
|
|||
)
|
||||
|
||||
respond_to do |format|
|
||||
if @comment.valid? && @comment.save
|
||||
if @comment.save
|
||||
# Generate activity
|
||||
Activity.create(
|
||||
type_of: :add_comment_to_module,
|
||||
|
|
|
@ -49,7 +49,7 @@ class ProjectCommentsController < ApplicationController
|
|||
)
|
||||
|
||||
respond_to do |format|
|
||||
if @comment.valid? && @comment.save
|
||||
if @comment.save
|
||||
# Generate activity
|
||||
Activity.create(
|
||||
type_of: :add_comment_to_project,
|
||||
|
|
|
@ -47,7 +47,7 @@ class ResultCommentsController < ApplicationController
|
|||
)
|
||||
|
||||
respond_to do |format|
|
||||
if @comment.valid? && @comment.save
|
||||
if @comment.save
|
||||
|
||||
# Generate activity
|
||||
Activity.create(
|
||||
|
|
|
@ -46,7 +46,7 @@ class StepCommentsController < ApplicationController
|
|||
)
|
||||
|
||||
respond_to do |format|
|
||||
if @comment.valid? && @comment.save
|
||||
if @comment.save
|
||||
# Generate activity (this can only occur in module,
|
||||
# but nonetheless check if my module is not nil)
|
||||
if @protocol.in_module?
|
||||
|
|
Loading…
Add table
Reference in a new issue