mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-09 22:23:28 +08:00
cleanup update timestamp
This commit is contained in:
parent
e8d187b5f6
commit
95ab35e3d6
2 changed files with 1 additions and 4 deletions
|
@ -66,7 +66,7 @@ class ExperimentsController < ApplicationController
|
|||
@experiment.update_attributes(experiment_params)
|
||||
@experiment.last_modified_by = current_user
|
||||
if @experiment.save
|
||||
@experiment.touch(:workflowimg_updated_at)
|
||||
# @experiment.touch(:workflowimg_updated_at)
|
||||
flash[:success] = t('experiments.update.success_flash',
|
||||
experiment: @experiment.name)
|
||||
redirect_to canvas_experiment_path(@experiment)
|
||||
|
|
|
@ -199,9 +199,6 @@ class Experiment < ActiveRecord::Base
|
|||
|
||||
# Everyhing is set, now we can move any module groups
|
||||
move_module_groups(updated_to_move_groups)
|
||||
|
||||
# update Experiment timestamp
|
||||
touch
|
||||
end
|
||||
rescue ActiveRecord::ActiveRecordError, ArgumentError, ActiveRecord::RecordNotSaved
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue