aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/line_referential_sync.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/line_referential_sync.rb')
-rw-r--r--app/models/line_referential_sync.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/line_referential_sync.rb b/app/models/line_referential_sync.rb
index 163d87f8e..763936f3b 100644
--- a/app/models/line_referential_sync.rb
+++ b/app/models/line_referential_sync.rb
@@ -3,8 +3,8 @@ class LineReferentialSync < ActiveRecord::Base
has_many :line_sync_operations, dependent: :destroy
- def record_status status
- line_sync_operations << LineSyncOperation.new(status: status)
+ def record_status status, message
+ line_sync_operations << LineSyncOperation.new(status: status, message: message)
line_sync_operations.first.destroy while line_sync_operations.count > 30
end
end