Merge pull request #118 from ZmagoD/zd_SCI_398

fixes workflow img bug [fixes SCI-398]
This commit is contained in:
Zmago Devetak 2016-08-30 14:55:33 +02:00 committed by GitHub
commit 5b4eb07960

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