From 4655372a601bbdf90d352abe8fefed094b866d69 Mon Sep 17 00:00:00 2001 From: Xinhui Date: Tue, 11 Oct 2016 12:04:46 +0200 Subject: Remove cancel sync link --- app/models/line_referential_sync.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'app/models/line_referential_sync.rb') diff --git a/app/models/line_referential_sync.rb b/app/models/line_referential_sync.rb index 7d0c1ba1f..03fea6a97 100644 --- a/app/models/line_referential_sync.rb +++ b/app/models/line_referential_sync.rb @@ -6,10 +6,6 @@ class LineReferentialSync < ActiveRecord::Base after_commit :perform_sync, :on => :create validate :multiple_process_validation, :on => :create - def can_be_canceled? - [:new, :pending].include? self.status.to_sym - end - private def perform_sync create_sync_message :info, :new -- cgit v1.2.3