aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXinhui2017-02-03 10:52:54 +0100
committerXinhui2017-02-03 10:54:44 +0100
commitca780b861fe316c07eb21c0cce5638d1beafdaa8 (patch)
treeae1187d40f30f44580cfaa34aacf9d22ed8f0ff7
parent09176e5bb9a7171d64c43917e201c82163fafda6 (diff)
downloadchouette-core-ca780b861fe316c07eb21c0cce5638d1beafdaa8.tar.bz2
Fix reflex sync - transition from new to failed
-rw-r--r--app/models/stop_area_referential_sync.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/stop_area_referential_sync.rb b/app/models/stop_area_referential_sync.rb
index a4e3eae30..0e32df4d2 100644
--- a/app/models/stop_area_referential_sync.rb
+++ b/app/models/stop_area_referential_sync.rb
@@ -36,7 +36,7 @@ class StopAreaReferentialSync < ActiveRecord::Base
end
event :failed, after: :log_failed do
- transitions :from => :pending, :to => :failed
+ transitions :from => [:new, :pending], :to => :failed
end
end