fixes update times [fixes SCI-398]

This commit is contained in:
zmagod 2016-08-30 13:23:48 +02:00
parent 95ab35e3d6
commit a947354fb5
2 changed files with 3 additions and 2 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

@ -321,7 +321,8 @@ class Experiment < ActiveRecord::Base
file = File.open(file_location)
self.workflowimg = file
file.close
save!
save
touch(:workflowimg_updated_at)
rescue => ex
logger.error ex.message
end