3882: Change "update_timestamps_when_state_changes" from before_validation to after_v...
authorradhika <radhika@curoverse.com>
Mon, 6 Oct 2014 16:24:29 +0000 (12:24 -0400)
committerradhika <radhika@curoverse.com>
Mon, 6 Oct 2014 16:24:29 +0000 (12:24 -0400)
commit2dbf4bb77bb1ec3df58350a3982da1c77bc0e527
treedfc266c1bda6ffc0373f8840bcf75393391f0af3
parentb7c8b1cc7d646c99493558ab20d3b313eb7b2d9f
3882: Change "update_timestamps_when_state_changes" from before_validation to after_validation,
so that update of success and running flags is done AFTER ensuring the state change is valid.
Otherwise, the update to success and running flags is resulting in overriding the actual state update.
services/api/app/models/job.rb