diff options
| author | Edouard Maffert | 2016-08-19 11:48:17 +0200 |
|---|---|---|
| committer | Edouard Maffert | 2016-08-19 11:48:17 +0200 |
| commit | b2eeaa1eb9f8e4788ef1467bd6fbd2dd4aa6300c (patch) | |
| tree | 427103d3eaba70110aeb6f4f40b8b82c2d5bdff4 /app/models | |
| parent | 3006b23a21ab2d5671e29c1241fd5cf672f9ce1d (diff) | |
| download | chouette-core-b2eeaa1eb9f8e4788ef1467bd6fbd2dd4aa6300c.tar.bz2 | |
fix codiflinesynchronization and add better synchronization messages
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/line_referential_sync.rb | 4 |
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 |
