cleanup update timestamp

This commit is contained in:
zmagod 2016-08-30 12:58:52 +02:00
parent e8d187b5f6
commit 95ab35e3d6
2 changed files with 1 additions and 4 deletions

View file

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

View file

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